Zoppoli, Gabriele (NIH/NCI) [G] wrote:
Hi,

I want to generate a number of vectors and store them with different names, 
like this:

x=1

while (x<100)

{ vector#x# = rnorm(100)
   x=x+1
}

where each vector has, at its hand, instead of #x# a number which goes from 1 
to 99.

How can I do this?


?paste and ?assign but almost surely you'd be better off storing these vectors in a list or matrix.

______________________________________________
R-help@r-project.org 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