add_relative_abundance: (DEPRECATED) Add relative abundance to an OTU table

Description Usage Arguments See Also

View source: R/deprecated.R

Description

'add_relative_abundance' is deprecated. Use the 'dplyr' package and the following idiom instead:

1
2
3
4
5
library(dplyr)
OTUTable %>%
 group_by(Sample) %>%
 mutate(RelativeAbundance = (100 * Count) / sum(Count) %>%
 ungroup

Usage

1

Arguments

OTUTable

the OTU table in a tbl, with at least 'Sample', 'OTU' and 'Count' columns

See Also

Other add_relative_abundance: add.relative.abundance


wilkox/wilkoxmisc documentation built on Oct. 14, 2020, 7:51 a.m.