margin | R Documentation |
Marginal Compositions
margin(x, ...)
## S4 method for signature 'CompositionMatrix'
margin(x, parts = c(1, 2), name = "*")
x |
A |
... |
Currently not used. |
parts |
An |
name |
A |
A CompositionMatrix
object.
N. Frerebeau
Other statistics:
aggregate()
,
condense()
,
covariance()
,
dist
,
mahalanobis()
,
mean()
,
pip()
,
quantile()
,
scale()
,
variance()
,
variance_total()
,
variation()
## Data from Aitchison 1986
data("hongite")
## Coerce to compositional data
coda <- as_composition(hongite)
## Marginal compositions
mar <- margin(coda, parts = c("B", "D"))
head(mar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.