[R] sapply again return value

Antje niederlein-rstat at yahoo.de
Fri Feb 16 10:54:19 CET 2007


Hello,

I used an sapply to get some data back (s <- sapply(...) ). The output 
of s would then deliver something like this:

      B06_lamp.csv C06_lamp.csv D06_lamp.csv
[1,] NULL         NULL         Numeric,512
[2,] NULL         NULL         Numeric,512
[3,] NULL         NULL         2
 > mode(s)
[1] "list"
 > dim(s)
[1] 3 3
 >

Now, I'd like to remove the columns which contain NULL (it's alway the 
whole column).
How can I do this???

Antje



More information about the R-help mailing list