condense | R Documentation |
Splits the data into subsets and computes compositional mean for each.
condense(x, ...)
## S4 method for signature 'CompositionMatrix'
condense(x, by = groups(x), ...)
x |
A |
... |
Further arguments to be passed to |
by |
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.