tabulate_factors: Tabulate interaction between two factors in the sample_data...

Description Usage Arguments Value Examples

View source: R/helper.R

Description

Tabulate interaction between two factors in the sample_data of a phyloseq object

Usage

1
tabulate_factors(physeq, factor1, factor2)

Arguments

physeq

Phyloseq object

factor1

First factor

factor2

Second factor

Value

data frame containing table of two-factor interactions.

Examples

1
2
3
4
5
6
## Not run: 
tab <- tabulate_factors(physeq, "Diet", "Enterotype")
colnames(tab) <- paste0("ET-", colnames(tab))
knitr::kable(tab, caption = "Distribution of enterotypes in the different Diet groups")

## End(Not run)

TBrach/MicrobiomeX documentation built on April 19, 2018, 12:25 a.m.