|
a |
|
b/man/aggregate_matrix.Rd |
|
|
1 |
% Generated by roxygen2: do not edit by hand |
|
|
2 |
% Please edit documentation in R/utils.R |
|
|
3 |
\name{aggregate_matrix} |
|
|
4 |
\alias{aggregate_matrix} |
|
|
5 |
\title{Aggregate matrix over groups} |
|
|
6 |
\usage{ |
|
|
7 |
aggregate_matrix(x, groups = NULL, fun = "mean") |
|
|
8 |
} |
|
|
9 |
\arguments{ |
|
|
10 |
\item{groups}{A character vector with the groups to aggregate over.} |
|
|
11 |
|
|
|
12 |
\item{fun}{The summary function to be applied to each group.} |
|
|
13 |
} |
|
|
14 |
\value{ |
|
|
15 |
A summary matrix. |
|
|
16 |
} |
|
|
17 |
\description{ |
|
|
18 |
Aggregate matrix over groups |
|
|
19 |
} |