aggregate_matrix: Aggregate matrix over groups

View source: R/utils.R

aggregate_matrixR Documentation

Aggregate matrix over groups

Description

Aggregate matrix over groups

Usage

aggregate_matrix(x, groups = NULL, fun = Matrix::colMeans)

Arguments

groups

A character vector with the groups to aggregate over.

fun

The aggregation function to be applied to each chunk of the matrix.

Value

A summary matrix.


quadbiolab/VoxHunt documentation built on March 4, 2024, 6:37 a.m.