mean {nexus} | R Documentation |
Compositional Mean
Description
Compositional Mean
Usage
## S4 method for signature 'CompositionMatrix'
mean(x, ..., na.rm = FALSE)
Arguments
x |
A |
... |
Currently not used. |
na.rm |
A |
Details
Closed vector of the columns geometric means.
Value
A numeric
vector.
Author(s)
N. Frerebeau
References
Aitchison, J. (1986). The Statistical Analysis of Compositional Data. London: Chapman and Hall, p. 64-91.
See Also
Other statistics:
aggregate()
,
covariance()
,
dist
,
mahalanobis()
,
margin()
,
metric_var()
,
quantile()
,
scale()
,
variation()
Examples
## Data from Aitchison 1986
data("hongite")
## Coerce to compositional data
coda <- as_composition(hongite)
## Mean
mean(coda)
## Quantile
quantile(coda)
## Metric variance
metric_var(coda)
## Metric standard deviation
metric_sd(coda)
[Package nexus version 0.2.0 Index]