is_compositional: Test Compositionality

Description Usage Arguments Details Value See Also Examples

View source: R/is_compositional.R

Description

Test if phyloseq object is compositional.

Usage

1
is_compositional(x, tolerance = 1e-06)

Arguments

x

phyloseq-class object

tolerance

Tolerance for detecting compositionality.

Details

This function tests that the sum of abundances within each sample is almost zero, within the tolerance of 1e-6 by default.

Value

Logical TRUE/FALSE

See Also

transform

Examples

1
2
3
4

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.