[R] R: characters

Clark Allan Allan at STATS.uct.ac.za
Wed Aug 17 12:35:09 CEST 2005


hi all 

assume that i have the following table

a=rbind(c(T,T,F),c(F,F,T))
> a
      [,1]  [,2]  [,3]
[1,]  TRUE  TRUE FALSE
[2,] FALSE FALSE  TRUE

I would like to change all the FALSE entries to a blank. how can i do
this?

i could simply use

a[a==F]=""
a

but then how would i remove the " " from the entries.

i know that this should be very easy!!!

/
allan


More information about the R-help mailing list