as_abundances: Convert matrix with abundances to tidy data frame

as_abundancesR Documentation

Convert matrix with abundances to tidy data frame

Description

as_abundances returns a tidy data frame given a numerical abundance matrix.

Usage

as_abundances(abundances_matrix, taxa_are_columns = TRUE, value = "abundance")

Arguments

abundances_matrix

The ambundance matrix that will be converted.

taxa_are_columns

A logical scalar. Are the taxa defined in columns? Default is TRUE.

value

Name of resulting colum containing the abundance data. Default is "abundance".

Details

This function will convert a numerical abundance matrix into a tidy data frame. To convert a tidy data frame into a numerical abundance matrix use as_abundances_matrix.


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