megh: > I want to create a number of vectors like : > > vec1 <- rnorm(1) > vec2 <- rnorm(2) > vec3 <- rnorm(3) > > and so on...........
Maybe try the assign() function. Something like: for (i in 1:10) assign ( paste ( "vec" , i , sep = "" ) , rnorm(i) ) Kind regards, Nikos ______________________________________________ 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.