[R] write.matrix.csr data conversion

David Meyer david.meyer at wu.ac.at
Mon Aug 27 22:57:17 CEST 2012


done, thanks for the suggestion.

David

On 2012-08-27 21:15, Sam Steingold wrote:
>> * 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!
>

-- 
Priv.-Doz. Dr. David Meyer
Department of Information Systems and Operations

WU
Wirtschaftsuniversität Wien
Vienna University of Economics and Business
Augasse 2-6, 1090 Vienna, Austria
Tel: +43-1-313-36-4393
Fax: +43-1-313-36-90-4393
HP:  http://ec.wu.ac.at/~meyer




More information about the R-help mailing list