Hopefully quick question. I would like to populate a list with n objects using a for loop, so within the loop (i to n) I need to refer to a list as example.list[[i]] . This requires that I create a example.list[[i]] with n objects before the for loop. How do I do this? With matrices it is easy (matrix()).
thanks! Sam ______________________________________________ [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.
