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

Description Usage Arguments Value Examples

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 May 14, 2019, 2:28 p.m.