taxonomyTable-class
).
When the argument is a character matrix, tax_table() will create and return a
taxonomyTable-class
object.
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 (phyloseq-class
)
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
error if object
is a phyloseq-class
but does not
contain a taxonomyTable
.tax_table(object, errorIfNULL=TRUE)## S3 method for class 'ANY':
tax_table(object, errorIfNULL = TRUE)
## S3 method for class 'matrix':
tax_table(object)
## S3 method for class 'data.frame':
tax_table(object)
NULL
)? Default TRUE
.taxonomyTable-class
object.
It is either grabbed from the relevant slot
if object
is complex, or built anew if object
is a
character matrix representing the taxonomic classification of
species in the experiment.phy_tree
, sample_data
, otu_table
phyloseq
, merge_phyloseq
#
# tax1 <- tax_table(matrix("abc", 30, 8))
# data(GlobalPatterns)
# tax_table(GlobalPatterns)
Run the code above in your browser using DataLab