Learn R Programming

arrayhelpers (version 1.1-2)

rowsum,array-method: rowsum for arrays

Description

This function extends the base function rowsum.

Usage

# S4 method for array
rowsum(x, group, reorder = TRUE, na.rm = FALSE, ...)

Value

like rowsum, but further dimensions of the array are preserved.

Arguments

x

array to be rowsummed

group

grouping variable (integer or factor) indicating groups of samples.

reorder

should the groups be ordered? see rowsum

na.rm

shoud NAs be removed?

...

ignored

Author

Claudia Beleites

See Also