calc_relabun {schtools}R 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()

[Package schtools version 0.4.1 Index]