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').
# 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")
# }