mp_aggregate | R Documentation |
aggregate the assays with the specific group of sample and fun.
mp_aggregate(.data, .abundance, .group, fun = sum, keep_colData = TRUE, ...)
## S4 method for signature 'MPSE'
mp_aggregate(.data, .abundance, .group, fun = sum, keep_colData = TRUE, ...)
.data |
MPSE object, required |
.abundance |
the column names of abundance, default is Abundance. |
.group |
the column names of sample meta-data, required |
fun |
a function to compute the summary statistics, default is sum. |
keep_colData |
logical whether to keep the sample meta-data with |
... |
additional parameters, see also |
a new object with .group as column names in assays
## Not run:
data(mouse.time.mpse)
newmpse <- mouse.time.mpse %>%
mp_aggregate(.group = time)
newmpse
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.