margin(x,...)## S4 method for signature 'CompositionMatrix'margin(x, parts = c(1,2), name ="*")
Arguments
x: A CompositionMatrix object.
...: Currently not used.
parts: An integer or a character vector specifying the columns to be selected.
name: A character string giving the name of the amalgamation column.
Returns
A CompositionMatrix object.
Examples
## Data from Aitchison 1986data("hongite")## Coerce to compositional datacoda <- as_composition(hongite)## Marginal compositionsmar <- margin(coda, parts = c("B","D"))head(mar)