[R] list to data frame by rows ...

About this list Date view Thread view Subject view Author view

From: Johann Petrak (johann@ai.univie.ac.at)
Date: Thu 10 May 2001 - 00:56:56 EST


Message-ID: <3AF95AB8.61CD0B58@ai.univie.ac.at>

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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:41 EST