[BioC] sum of columns

chris Jhon cjhon217 at gmail.com
Thu Jul 11 10:56:35 CEST 2013


Hi All,

I have a data frame like this


gene         symbol    sample1 sample2 sample3 sample4

gene1             A          0          0                0            0
gene2             B          0          10              2            0
gene3             C          0         0                0             0

and i would like to subset the data frame to have only genes that have
sum in all samples greater than zero.

How to do this in R

Thank you for any help



More information about the Bioconductor mailing list