Message-ID: <x2k6ikg4bw.fsf@turmalin.kubism.ku.dk>
Date: 2005-08-17T12:01:23Z
From: Peter Dalgaard
Subject: R: characters
In-Reply-To: <20050817115201.29843.qmail@web40510.mail.yahoo.com>
Martin Lam <tmlammail at yahoo.com> writes:
> Hmm, it seems that the only difference is the use of
> "as.data.frame(a)" instead of "a". Hence, the same
> result can be done with:
>
> a <- rbind(c(T, T, F), c(F, F, T))
> a[a==F]=""
> as.data.frame(a)
That's silly:
> a[!a]<-""
> noquote(a)
[,1] [,2] [,3]
[1,] TRUE TRUE
[2,] TRUE
--
O__ ---- Peter Dalgaard ??ster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907