Skip to content
Prev 11126 / 398502 Next

list to data frame by rows ...

Ugh, newbie question ... :

I have a list of vectors of equal size, like
  list(c(1,2,3),c(4,5,6)) 
and want to convert this into a data frame row-wise:

1   1 4
2   2 5
3   3 6

Whats the elegant/R-way to do this?

Johann
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._