aggregate.Matrix: aggregate.Matrix for each column estimate per group (of rows)...

aggregate.MatrixR Documentation

aggregate.Matrix for each column estimate per group (of rows) mean

Description

aggregate.Matrix for each column estimate per group (of rows) mean

Usage

## S3 method for class 'Matrix'
aggregate(x, group, fun = "sum")

Arguments

x

a n x p Matrix or object coercible to one

group

a factor or a object coercible to one specifying the grouping of rows of x into k groups

Value

a k x p dgCMatrix of values of x aggragated by group


jan-glx/schelpr documentation built on March 28, 2024, 1:35 a.m.