convert_to_treedata: convert dataframe contained hierarchical relationship or...

View source: R/method-as.treedata.R

convert_to_treedataR Documentation

convert dataframe contained hierarchical relationship or other classes to treedata class

Description

convert dataframe contained hierarchical relationship or other classes to treedata class

Usage

convert_to_treedata(data, type = "species", include.rownames = FALSE, ...)

Arguments

data

data.frame, such like the tax_table of phyloseq.

type

character, the type of datasets, default is "species", if the dataset is not about species, #' such as dataset of kegg function, you should set it to "others".

include.rownames

logical, whether to set the row names as the tip labels, default is FALSE.

...

additional parameters.

Value

treedata class.

Author(s)

Shuangbin Xu

Examples

## Not run: 
  data(hmp_aerobiosis_small)
  head(taxda)
  treedat <- convert_to_treedata(taxda, include.rownames = FALSE)

## End(Not run)

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