abundances_matrix: Return an abundances matrix

abundances_matrixR Documentation

Return an abundances matrix

Description

This function returns the abundances table in the form of a matrix where the rows are samples and the column are taxa.

Usage

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.


SWittouck/tidyamplicons documentation built on Aug. 15, 2023, 3:14 a.m.