[R] R: characters
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Wed Aug 17 14:01:23 CEST 2005
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
More information about the R-help
mailing list