[R] How to convert a list to a matrix

michael watson (IAH-C) michael.watson at bbsrc.ac.uk
Thu Feb 3 16:08:32 CET 2005


Hi

Sorry to ask such a basic question.  I have a list, each element of
which is a vector of two values.  What I actually want is a matrix with
two columns, and one row per element of the list.  Obviously I have
tried as.matrix(), and as.vector() but I didn't expect the latter to
work.

I feel so lame asking this.  Any suggestions?

Mick




More information about the R-help mailing list