Skip to content
Back to formatted view

Raw Message

Message-ID: <3AF95AB8.61CD0B58@ai.univie.ac.at>
Date: 2001-05-09T14:56:56Z
From: Johann Petrak
Subject: 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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._