Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/merge_samples.R
Combines samples into groups defined by the hierarchy table, with the possibility to convert abundances into incidence data.
1 | merge_samples(countable,hierarchy,incidence)
|
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. |
Merge samples
A count table
Antton Alberdi, anttonalberdi@gmail.com
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.
1 2 3 4 5 | data(bat.diet.otutable)
data(bat.diet.hierarchy)
merge_samples(countable=bat.diet.otutable,hierarchy=bat.diet.hierarchy)
merge_samples(bat.diet.otutable,bat.diet.hierarchy)
merge_samples(countable=bat.diet.otutable,hierarchy=bat.diet.hierarchy, incidence=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.