[R] vector entry in matix

Thomas C. thomas.csapak at gmail.com
Thu Jul 5 15:19:37 CEST 2012


i'm trying to figure out if there's any possibility to write a whole vector
into a matrix or data.frame or something like that. i don't mean
transormation. Here an example:

       [,1]  [,2]
[1,] "a" "d"
[2,] "b" "e"
[3,] "c" "f"

where e.g.  a is a<-c(0,1) vector of length 2, b a vector of length 4,... (i
know that the matrix enties are strings :)). i'm trying to put some
variables into a matrix or data.frame, but i couldn't handle it. is
something like that possible in R?

thanks for your help!

View this message in context: http://r.789695.n4.nabble.com/vector-entry-in-matix-tp4635478.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list