[R] Transforming matrix

Ramon Diaz rdiaz at cnio.es
Thu Apr 10 16:12:43 CEST 2003


Dear Ramzi,

If you have your TRUE/FALSE values in m1, then do

> mode(m1) <- "numeric".

This is probably not the best way but it seems to work.


Ramón



On Thursday 10 April 2003 15:56, Ramzi Feghali wrote:
> hi everybody,
> anyone knows how we can transform a binary matrix with TRUE and FALSE to 0
> and 1 without looping? Thx
>
>
>
> ---------------------------------
>
>
> 	[[alternate HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help

-- 
Ramón Díaz-Uriarte
Bioinformatics Unit
Centro Nacional de Investigaciones Oncológicas (CNIO)
(Spanish National Cancer Center)
Melchor Fernández Almagro, 3
28029 Madrid (Spain)
Fax: +-34-91-224-6972
Phone: +-34-91-224-6900

http://bioinfo.cnio.es/~rdiaz



More information about the R-help mailing list