tax_table-tbl_df-method: Constructor for creating taxonomyTable from a tibble (class...

Description Usage Details See Also Examples

Description

Assumes that the first column is the OTU/taxon names.

Usage

1
2
## S4 method for signature 'tbl_df'
tax_table(object)

Details

This function creates a matrix from object that contains all columns except the first one, which is used for the row names. The resulting matrix is then passed to tax_table().

See Also

phyloseq::tax_table

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Read a .csv file with readr, which creates an object of class `tbl_df`
tbl <- readr::read_csv("path/to/taxonomy_table.csv")
# Inspect and check that the first column contains the taxa/OTU names
head(tbl) 
# Create a phyloseq `taxonomyTable` object
tax <- tax_table(tbl)

## End(Not run)

mikemc/tidyseq documentation built on Oct. 27, 2019, 12:46 p.m.