Skip to content
Prev 324502 / 398503 Next

Returning combine output from R loop

Hi,
You could reduce those steps by:
as.data.frame(do.call(rbind,a2))
A.K.



----- Original Message -----
From: Abdul Rahman bin Kassim (Dr.) <rahmank at frim.gov.my>
To: John Kane <jrkrideau at inbox.com>; "r-help at r-project.org" <r-help at r-project.org>
Cc: 
Sent: Friday, May 31, 2013 11:47 AM
Subject: Re: [R] Returning combine output from R loop

Dear Kane,

Thanks for your response and improve R script. With additional R script below, my question has been resolved. Thanks again for your kind help.

b1<-data.frame(a2[1])
b2<-data.frame(a2[2])
b3<-data.frame(a2[3])

bb<-rbind(b1,b2,b3)

---
Abd Rahman