calc_relabun: Calculate OTU relative abundances from a shared file

View source: R/calculate.R

calc_relabunR Documentation

Calculate OTU relative abundances from a shared file

Description

Calculate OTU relative abundances from a shared file

Usage

calc_relabun(abs_abun_dat)

Arguments

abs_abun_dat

a data frame from reading in a shared file. Should contain a Group column for sample names, Otu columns for absolute counts of each OTU, and rows as each sample.

Value

a new data frame with OTU relative abundances in long format.

Author(s)

Kelly Sovacool sovacool@umich.edu

Examples

shared_dat <- readr::read_tsv(system.file("extdata", "test.shared",
  package = "schtools"
))
shared_dat %>% calc_relabun()

SchlossLab/mothuR documentation built on Aug. 29, 2023, 1:32 a.m.