filterZeroCols {pRoloc} | R Documentation

## Remove 0 columns/rows

### Description

Removes all assay data columns/rows that are composed of only 0, i.e. have a `colSum`/`rowSum` of 0.

### Usage

    filterZeroCols(object, verbose = TRUE)

    filterZeroRows(object, verbose = TRUE)

### Arguments

`object` | A `MSnSet` object.
`verbose` | Print a message with the number of filtered out columns/row (if any).

### Value

An `MSnSet`.

### Author(s)

Laurent Gatto

### Examples

    library("pRolocdata")
    data(andy2011goCC)
    any(colSums(exprs(andy2011goCC)) == 0)
    exprs(andy2011goCC)[, 1:5] <- 0
    ncol(andy2011goCC)
    ncol(filterZeroCols(andy2011goCC))

[Package pRoloc version 1.27.6 Index]