View source: R/coda4microbiome_functions.R
logratios_matrix | R Documentation |
Computes a large matrix with all the log-ratios between pairs of taxa (columns) in the abundance table
logratios_matrix(x)
x |
abundance matrix or data frame (rows are samples, columns are variables (taxa)) |
list with matrix of log-ratios, matrix indicating the pairs of variables involved in each log-ratio, and a matrix indicating the names of the variables involved in each log-ratio.
M. Calle - T. Susin
data(HIV, package = "coda4microbiome")
lrHIV<-logratios_matrix(x_HIV[,(1:4)])
# matrix of log-ratios (first 6 rows and 6 columns):
lrHIV[[1]][1:6,1:6]
# variables involved in each log-ratio
head(lrHIV[[2]])
# names of the variables involved in each log-ratio
head(lrHIV[[3]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.