convert_to_treedata {MicrobiotaProcess} | R 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", ...)

### 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".
`...,` | additional parameters.

### Value

treedata class.

### Author(s)

Shuangbin Xu

### Examples

    ## Not run:
      data(hmp_aerobiosis_small)
      head(taxda)
      treedat <- convert_to_treedata(taxda)

    ## End(Not run)

[Package MicrobiotaProcess version 1.4.4 Index]