as.treedata.taxonomyTable {MicrobiotaProcess} | R Documentation |
convert taxonomyTable to treedata
## S3 method for class 'taxonomyTable' as.treedata(tree, include.rownames = FALSE, ...)
tree |
object, This is for taxonomyTable class, so it should be a taxonomyTable. |
include.rownames |
logical, whether to set the rownames of taxonomyTable to tip labels, default is FALSE. |
... |
additional parameters. |
## Not run: data(test_otu_data) test_otu_data %<>% as.phyloseq() tree <- as.treedata(phyloseq::tax_table(test_otu_data), include.rownames = TRUE) ## End(Not run)