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.

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to