Log-Ratio Matrix
S4 classes to represent log-ratio data transformations. class
is_logratio(object)
object
: A LogRatio
object.totals
: A numeric
vector to store the absolute row sums (before the closure of the compositions).parts
: A character
vector to store the original part names.ratio
: A character
vector to store the ratio names.order
: An integer
vector to store the original ordering of the columns.base
: A numeric
matrix to store the basis of the transformation.weights
: A numeric
vector to store the weights assigned to the respective log-ratios.These classes inherit from matrix
.
In the code snippets below, x
is a LogRatio
object.
as.data.frame(x)
: Coerces to a data.frame
.transform_lr()
, transform_clr()
, transform_alr()
, transform_ilr()
, transform_plr()
Other classes: CompositionMatrix-class
, GroupedComposition-class
, GroupedLogRatio-class
, NumericMatrix-class
, OutlierIndex-class
, ReferenceGroups-class
N. Frerebeau
Useful links