Learn R Programming

hilldiv (version 1.5.1)

match_data: Match data

Description

Filter count tables and OTU/ASV phylogenetic trees to match OTUs/ASVs present in both data files..

Usage

match_data(countable, tree, output)

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.

tree

An ultrametic tree of class 'phylo'.

output

Whether to output a filtered count table ('countable') or a filtered OTU tree ('tree').

Details

Match data

See Also

hill_div, index_div

Examples

Run this code
# NOT RUN {
data(bat.diet.otutable)
data(bat.diet.tree)
match_data(bat.diet.otutable,bat.diet.tree,output="countable")
match_data(bat.diet.otutable,bat.diet.tree,output="tree")
# }

Run the code above in your browser using DataLab