powered by
Marginal Compositions
margin(x, ...)# S4 method for CompositionMatrix margin(x, parts = c(1, 2), name = "*")
# S4 method for CompositionMatrix margin(x, parts = c(1, 2), name = "*")
A CompositionMatrix object.
CompositionMatrix
Currently not used.
An integer or a character vector specifying the columns to be selected.
integer
character
A character string giving the name of the amalgamation column.
N. Frerebeau
Other statistics: aggregate(), condense(), covariance(), dist, mahalanobis(), mean(), pip(), quantile(), scale(), variance(), variance_total(), variation()
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)
Run the code above in your browser using DataLab