counts_matrix: Creates a counts matrix from an agglomerated data frame....

Description Usage Arguments Value

Description

Creates a counts matrix from an agglomerated data frame. Optionally, metadata columns can be included (useful for some functions), in which case the output is a data.frame, not a matrix.

Usage

1
counts_matrix(agg, additional.columns)

Arguments

agg

agglomerated data frame

additional.columns

any columns to include as columns in the matrix

Value

default: a numeric matrix with otu as rows and samples as columns. If additional columns specified, a data.frame with otus as columns and samples as rows


eclarke/sarcoid-microbiome-paper documentation built on May 29, 2019, 2:52 p.m.