GroupedLogRatio-class {nexus} | R Documentation |
Grouped Log-Ratio Matrix
Description
An S4 class to represent grouped log-ratio.
Coerce
In the code snippets below, x
is a GroupedLogRatio
object.
as.data.frame(x)
Coerces to a
data.frame
.
Note
This class inherits from LogRatio
and
ReferenceGroups
.
Author(s)
N. Frerebeau
See Also
Other classes:
CompositionMatrix-class
,
GroupedComposition-class
,
LogRatio-class
,
NumericMatrix-class
,
OutlierIndex-class
,
ReferenceGroups-class
Examples
## Data from Aitchison 1986
data("hongite")
## Coerce to compositional data
coda <- as_composition(hongite)
## codaccess
dim(coda) # Get the matrix dimensions
row(coda) # Get the row indexes
col(coda, as.factor = TRUE) # Get the column indexes
nrow(coda) # Get the number of rows
ncol(coda) # Get the number of columns
dimnames(coda) # Get the dimension names
rownames(coda) <- LETTERS[1:25] # Set the row names
rownames(coda) # Get the rownames
colnames(coda) <- letters[21:25] # Set the column names
colnames(coda) # Get the column names
[Package nexus version 0.6.0 Index]