| condense | R Documentation |
Splits the data into subsets and computes compositional mean for each.
condense(x, ...)
## S4 method for signature 'CompositionMatrix'
condense(x, by, ignore_na = FALSE, ignore_zero = TRUE, verbose = FALSE, ...)
## S4 method for signature 'GroupedComposition'
condense(
x,
by = NULL,
ignore_na = FALSE,
ignore_zero = TRUE,
verbose = FALSE,
...
)
x |
A |
... |
Currently not used. |
by |
A |
ignore_na |
A |
ignore_zero |
A |
verbose |
A |
A CompositionMatrix object.
N. Frerebeau
mean(), aggregate()
Other statistics:
aggregate(),
covariance(),
dist,
mahalanobis(),
margin(),
mean(),
pip(),
quantile(),
scale(),
variance(),
variance_total(),
variation()
## Data from Aitchison 1986
data("slides")
## Coerce to a compositional matrix
coda <- as_composition(slides, groups = 2)
## Compositional mean by group
condense(coda)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.