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
)

Arguments

ta

A tidyamplicons object.

value

The name of a variable in the abundances table that contains the abundances (unquoted). Could be relative abundances, if present.

sample_name

The name of the variable in the sample table to use as row names (unquoted).

taxon_name

The name of the variable in the taxon table to use as column names (unquoted).

Value

A matrix with abundance values.