Skip to content
Prev 75717 / 398502 Next

R: characters

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)

A possible drawback is that the mode changes from
logical to character when using a[a==F]=""

Instead you could use a[a==F]=NA, but that won't get
you blank lines.

Best,

Martin


--- Dimitris Rizopoulos
<dimitris.rizopoulos at med.kuleuven.be> wrote:

            
http://www.student.kuleuven.be/~m0390867/dimitris.htm
--------------------------------------------------------------------------------