[R] Double return statement

2013-08-14 Thread Katherine Gobin
Dear R forum, I have a function which generates say two outputs, say output_1 and output_2. Output_1 is a single row output whereas Output_2 is a dataframe having multiple records. Is it possible to use two return statements in function. Output_2 uses some records from output_1, hence I need

Re: [R] Double return statement

2013-08-14 Thread Sarah Goslee
Hi, The usual thing to do is return a list containing output_1 and output_2. Sarah On Wed, Aug 14, 2013 at 10:23 AM, Katherine Gobin katherine_go...@yahoo.com wrote: Dear R forum, I have a function which generates say two outputs, say output_1 and output_2. Output_1 is a single row output

Re: [R] Double return statement

2013-08-14 Thread ONKELINX, Thierry
-project.org [mailto:r-help-boun...@r-project.org] Namens Katherine Gobin Verzonden: woensdag 14 augustus 2013 16:23 Aan: r-help@r-project.org Onderwerp: [R] Double return statement Dear R forum, I have a function which generates say two outputs, say output_1 and output_2. Output_1 is a single row