[R] write.matrix.csr data conversion

Sam Steingold sds at gnu.org
Mon Aug 27 21:15:45 CEST 2012


> * jim holtman <wubygzna at tznvy.pbz> [2012-08-27 14:55:08 -0400]:
>
> Most likely when 'y' is converted to a dataframe (not sure what the
> function 'write.matrix.csr' does since you did not say where you got
> it),

sorry,
library(e1071)

> '0' and '1' are converted to factors which probably show up as 1
> and 2 in the file.

sounds reasonable, thanks.

David, could you please add an option `fac' to `write.matrix.csr',
similar to `read.matrix.csr' which already accepts `fac'?

thanks!

-- 
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://ffii.org http://honestreporting.com
http://thereligionofpeace.com http://memri.org http://pmw.org.il
I'd give my right arm to be ambidextrous.




More information about the R-help mailing list