Skip to content
Prev 167042 / 398502 Next

remove columns containing all zeros (or other value)

You can also try this:

x[,-(which(colSums(x) == 0))]

Cheers,

Gustavo.
On Wed, Jan 14, 2009 at 8:01 PM, Anthony Dick <adick at uchicago.edu> wrote: