This is the suggested method for both constructing and accessing a table of
taxonomic names, organized with ranks as columns (
When the argument is a character matrix, tax_table() will create and return a
In this case, the rows should be named to match the
species.names of the other objects to which it will ultimately be paired.
Alternatively, if the first argument is an experiment-level (
object, then the corresponding
taxonomyTable is returned.
Like other accessors (see See Also, below), the default behavior of this method
is to stop with an
object is a
phyloseq-class but does not
1 2 3 4 5 6 7 8 9 10
An object among the set of classes defined by the phyloseq package that contain taxonomyTable.
(Optional). Logical. Should the accessor stop with
an error if the slot is empty (
It is either grabbed from the relevant slot
object is complex, or built anew if
object is a
character matrix representing the taxonomic classification of
species in the experiment.
1 2 3 4
# # tax1 <- tax_table(matrix("abc", 30, 8)) # data(GlobalPatterns) # tax_table(GlobalPatterns)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.