Skip to content
Back to formatted view

Raw Message

Message-ID: <430312DD.20A0A56C@STATS.uct.ac.za>
Date: 2005-08-17T10:35:09Z
From: Clark Allan
Subject: R: characters

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