[R] store and retrieve object names in a vector

zhihua li lzhtom at hotmail.com
Mon Dec 12 14:04:02 CET 2005

hi netters,

suppose i have a series of objects X1, X2, B1,C1........... they all have 
the same dimensions. i want to combine into one by using cbind:

but i don't want to type the names of these objects one by one. instead, 
i've put their names into a vector: x<-c("X1","X2","B1","C1",....)

i used y<-cbind(x). but what i got is a matrix of the names, not a 
combination of matrices.

anybody know how to handle this?

thanks a lot!

More information about the R-help mailing list