[R] appending to a list

Pete B Peter.Brecknock at bp.com
Sun Sep 5 21:41:21 CEST 2010


Is this what you are looking for ...

mylist=list()

for (i in 1:3){
 mylist[i] = rnorm(1)
}

print(mylist)

HTH

Pete
-- 
View this message in context: http://r.789695.n4.nabble.com/appending-to-a-list-tp2527597p2527635.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list