add_mean_rel_abundances: Add average relative abundances

View source: R/adders_taxa.R

add_mean_rel_abundancesR Documentation

Add average relative abundances

Description

This function adds mean relative abundance values for each taxon to the taxa table, overall or per sample group.

Usage

add_mean_rel_abundances(ta, condition = NULL, test = NULL)

Arguments

ta

A tidyamplicons object

condition

A condition variable (character)

test

Differential abundance test to perform

Details

If 'condition' is specified, the mean relative abundances will be calculated separately for each group defined by the condition variable. This variable should be present in the sample table.

If 'condition' is specified, differential abundance testing can be performed by setting the 'test' argument. Options are NULL (default), "wilcox" or "t-test".

Value

A tidyamplicons object


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