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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.