abundances_matrix.Rd
This function returns the abundances table in the form of a matrix where the rows are samples and the column are taxa.
abundances_matrix(
ta,
value = abundance,
sample_name = sample,
taxon_name = taxon
)
A tidyamplicons object.
The name of a variable in the abundances table that contains the abundances (unquoted). Could be relative abundances, if present.
The name of the variable in the sample table to use as row names (unquoted).
The name of the variable in the taxon table to use as column names (unquoted).
A matrix with abundance values.