[R] Matrix to data.frame with factors
brunosm87 at gmail.com
Fri Oct 19 13:04:09 CEST 2012
I have a matrix with 100 variables: each variable as a value of 0 or 1.
What i want to do is convert this matrix to a data.frame but convert all the
variables to factors (0 and 1) also.
I know i can do this one variable a time but i have 100 variables...
Any easy way of doing this??
Thanks a lot,
View this message in context: http://r.789695.n4.nabble.com/Matrix-to-data-frame-with-factors-tp4646730.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help