df2tree | R Documentation |
NOTE: this function will do before_tree
first.
df2tree(data, edge_df = FALSE)
data |
dataframe |
edge_df |
if the data is edge_df ? |
phylo object
data(otutab, package = "pcutils")
df2tree(taxonomy) -> tax_tree
print(tax_tree)
# check all nodes matched!
if (requireNamespace("picante")) {
picante::match.phylo.comm(tax_tree, t(otutab)) -> nn
nrow(nn$comm) == nrow(t(otutab))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.