[R] smart way to turn a vector into a matrix

anna lippelanna24 at hotmail.com
Fri Mar 26 20:38:01 CET 2010


so now the problem is that my real matrix is a data.frame.. The first column
is character, second dates and third numeric. What I did is I converted the
data frame into a matrix with data.matrix() but it converts my characters
and dates in integers. Any idea of how I could handle this?

-----
Anna Lippel
-- 
View this message in context: http://n4.nabble.com/smart-way-to-turn-a-vector-into-a-matrix-tp1692671p1692746.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list