Re: [R] Double return statement

2013-08-14 Thread ONKELINX, Thierry
Dear Katherine, Combine both outputs in a list and return that. return(list(first = output.1, second = output.2)) Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team Biometrics & Quality Ass

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 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 whereas Output_2 is a