[R] assign

Andy Bunn abunn at montana.edu
Wed Jan 7 18:36:58 CET 2004

This is one way:
for (j in 1:10) {
   assign(paste("x", j, sep="."), rnorm(100)) 

BTW, there have been many similar posts like this in the past. They are
easily found using the search function at

HTH, Andy

More information about the R-help mailing list