Description Usage Details See Also Examples
Assumes that the first column is the OTU/taxon names.
1 2 | ## S4 method for signature 'tbl_df'
tax_table(object)
|
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()
.
phyloseq::tax_table
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.