Re: [R] R: characters

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Wed 17 Aug 2005 - 22:01:23 EST

Martin Lam <tmlammail@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@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Wed Aug 17 22:06:42 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:26:44 EST