Re: [R] Function with large nested list

2023-12-18 Thread avi.e.gross
Emily, I too copied/pasted your code in and it worked fine. I then asked for the function definition and got it. Did you put the entire text in? I mean nothing extra above or below except maybe whitespace or comments? What sometimes happens to make the code incomplete is to leave out a matching

Re: [R] Function with large nested list

2023-12-18 Thread Michael Dewey
Dear Emily Comment in-line On 18/12/2023 09:56, Emily Bakker wrote: Hello list, I want to make a large rulebased algorithm, to provide decision support for drug prescriptions. I have defined the algorithm in a function, with a for loop and many if statements. The structure should be as follo

Re: [R] Function with large nested list

2023-12-18 Thread Ivan Krylov
В Mon, 18 Dec 2023 09:56:16 + Emily Bakker пишет: > When i try to run the function definiton, the command never > "completes" in de console. How do you run the function definition? I copied and pasted your example into a character variable and gave it to parse(text = ...). It parsed successf