Re: [R] Function with large nested list

2023-12-18 Thread avi.e.gross
parentheses of brace or bracket or sometimes quotes or using the wrong kind of quote as in copying from a program like Microsoft Word. -Original Message- From: R-help On Behalf Of Emily Bakker Sent: Monday, December 18, 2023 4:56 AM To: r-help@r-project.org Subject: [R] Function with

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

[R] Function with large nested list

2023-12-18 Thread Emily Bakker
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 follows: 1. Iterate over a list of drug names. For each drug: 2. Get some dru