Message-ID: <200304101612.43831.rdiaz@cnio.es>
Date: 2003-04-10T14:12:43Z
From: Ramon Diaz-Uriarte
Subject: Transforming matrix
In-Reply-To: <20030410135646.68565.qmail@web20308.mail.yahoo.com>
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