merge_samples: Merge samples

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/merge_samples.R

Description

Combines samples into groups defined by the hierarchy table, with the possibility to convert abundances into incidence data.

Usage

1
merge_samples(countable,hierarchy,incidence)

Arguments

countable

A count table (matrix/data.frame) indicating the absolute or relative OTU/ASV abundances of multiple samples. Columns must refer to samples and rows to OTUs/ASVs.

hierarchy

A two-column matrix indicating the relation between samples (first column) and groups (second column).

relative

Whether to output relative values or not. Default=TRUE.

incidence

Whether to transform abundance into incidence data when merging. Default=FALSE.

Details

Merge samples

Value

A count table

Author(s)

Antton Alberdi, anttonalberdi@gmail.com

References

Alberdi, A., Gilbert, M.T.P. (2019). A guide to the application of Hill numbers to DNA-based diversity analyses. Molecular Ecology Resources, 19, 804-817.

See Also

to.incidence

Examples

1
2
3
4
5

anttonalberdi/hilldiv documentation built on Feb. 14, 2021, 5:08 p.m.