I want to create a number of  vectors like :

vec1 <- rnorm(1)
vec2 <- rnorm(2)
vec3 <- rnorm(3)

and so on...........

Here I tried following :

for (i in 1:10) paste("vec", i, sep="") <- rnorm(i)

However obviously that is not working. Here vectors I need to be seperated
i.e I do not want to create a "list". How to modify above code?
-- 
View this message in context: 
http://www.nabble.com/Help-on-creating-a-sequence-of-vectors-tp24144347p24144347.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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