[R] Help on creating a sequence of vectors

megh megh700004 at yahoo.com
Mon Jun 22 11:38:38 CEST 2009


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.




More information about the R-help mailing list