as_amounts(from,...)## S4 method for signature 'CompositionMatrix'as_amounts(from)
Arguments
from: A CompositionMatrix object.
...: Currently not used.
Returns
A numericmatrix.
Examples
## Create a count matrixA1 <- matrix(data = sample(1:100,100,TRUE), nrow =20)## Coerce to compositionsB <- as_composition(A1)## Row sums are internally stored before coercing to relative frequenciestotals(B)## This allows to restore the source dataA2 <- as_amounts(B)## Coerce to a data.frameX <- as.data.frame(B)head(X)