[9abfcf]: / man / aggregate_matrix.Rd

Download this file

20 lines (18 with data), 450 Bytes

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