as.treedata: as.treedata

as.treedata.taxonomyTableR Documentation

as.treedata

Description

convert taxonomyTable to treedata

Usage

## S3 method for class 'taxonomyTable'
as.treedata(tree, include.rownames = FALSE, ...)

Arguments

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.

Examples

## 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)

xiangpin/MicrobitaProcess documentation built on Nov. 6, 2024, 1:15 a.m.