colCounts: Counts the number of features

Description Usage Arguments Value Author(s) See Also Examples

View source: R/aggregate.R

Description

Returns the number of non-NA features in a features by sample matrix.

Usage

1

Arguments

x

A matrix of mode numeric.

...

Currently ignored.

Value

A numeric vector of length identical to ncol(x).

Author(s)

Laurent Gatto

See Also

Other Quantitative feature aggregation: aggregate_by_vector(), medianPolish(), robustSummary()

Examples

1
2
3
4
5
m <- matrix(c(1, NA, 2, 3, NA, NA, 4, 5, 6),
            nrow = 3)
colCounts(m)
m <- matrix(rnorm(30), nrow = 3)
colCounts(m)

MsCoreUtils documentation built on Nov. 8, 2020, 10:59 p.m.