Re: [R] Returning combine output from R loop

2013-05-31 Thread arun
Hi, You could reduce those steps by: as.data.frame(do.call(rbind,a2)) A.K. - Original Message - From: Abdul Rahman bin Kassim (Dr.) To: John Kane ; "r-help@r-project.org" Cc: Sent: Friday, May 31, 2013 11:47 AM Subject: Re: [R] Returning combine output from R loop

Re: [R] Returning combine output from R loop

2013-05-31 Thread Abdul Rahman bin Kassim (Dr.)
Dear Kane, Great and thanks for the do.call function. Abd Rahman From: arun [smartpink...@yahoo.com] Sent: Saturday, June 01, 2013 12:23 AM To: Abdul Rahman bin Kassim (Dr.) Cc: R help; John Kane Subject: Re: [R] Returning combine output from R loop Hi

Re: [R] Returning combine output from R loop

2013-05-31 Thread Abdul Rahman bin Kassim (Dr.)
- Abd Rahman From: John Kane [jrkrid...@inbox.com] Sent: Friday, May 31, 2013 10:33 PM To: Abdul Rahman bin Kassim (Dr.); r-help@r-project.org Subject: RE: [R] Returning combine output from R loop One way is to put them in a list. Does this help? a0 <- data.frame(initial_size=sample(30,1

Re: [R] Returning combine output from R loop

2013-05-31 Thread John Kane
} John Kane Kingston ON Canada > -Original Message- > From: rahm...@frim.gov.my > Sent: Fri, 31 May 2013 06:36:58 + > To: r-help@r-project.org > Subject: [R] Returning combine output from R loop > > Dear R-User, > > Appreciate any advice on producing combin

Re: [R] Returning combine output from R loop

2013-05-31 Thread Abdul Rahman bin Kassim (Dr.)
: Friday, May 31, 2013 4:12 PM To: Abdul Rahman bin Kassim (Dr.); r-help@r-project.org Subject: RE: [R] Returning combine output from R loop In line with what you are doing now, but saving the intermediate results you could use something like this. a3 <- a0 for( i in 1:3) { a1 <- a0$initial_s

Re: [R] Returning combine output from R loop

2013-05-31 Thread Blaser Nello
, Nello -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Abdul Rahman bin Kassim (Dr.) Sent: Freitag, 31. Mai 2013 08:37 To: r-help@r-project.org Subject: [R] Returning combine output from R loop Dear R-User, Appreciate any advice on produ

[R] Returning combine output from R loop

2013-05-30 Thread Abdul Rahman bin Kassim (Dr.)
Dear R-User, Appreciate any advice on producing combine output from an R loop. Planning to project the growth (grow) of plant species (sp) from its initia size (initial_size). Using the follwing example, how can I produce the results combining the output from 3 iteration. The ouput a2 produce