t | R Documentation |
Matrix Transpose
## S4 method for signature 'CompositionMatrix'
t(x)
## S4 method for signature 'LogRatio'
t(x)
x |
A |
A matrix
, with dim and dimnames constructed appropriately from those of x
.
Implemented only to ensure that t()
always returns a base matrix
.
N. Frerebeau
## Data from Aitchison 1986
data("hongite")
## Coerce to compositional data
coda <- as_composition(hongite)
head(coda)
## Subset
coda[[1, 1]] # Get the first value
coda[1] # Get the first value
coda[, ] # Get all values
coda[1, ] # Get the first row
## Subcomposition
subcoda <- coda[, 1:3] # Get the first three column
head(subcoda)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.