taxa_names {phyloseq} | R Documentation

## Get species / taxa names.

### Description

Get species / taxa names.

### Usage

    taxa_names(physeq)

    ## S4 method for signature 'ANY'
    taxa_names(physeq)

    ## S4 method for signature 'phyloseq'
    taxa_names(physeq)

    ## S4 method for signature 'otu_table'
    taxa_names(physeq)

    ## S4 method for signature 'taxonomyTable'
    taxa_names(physeq)

    ## S4 method for signature 'sample_data'
    taxa_names(physeq)

    ## S4 method for signature 'phylo'
    taxa_names(physeq)

    ## S4 method for signature 'XStringSet'
    taxa_names(physeq)

### Arguments

`physeq` | `phyloseq-class`, `otu_table-class`, `taxonomyTable-class`, or `phylo`

### Value

A character vector of the names of the species in `physeq`.

### See Also

ntaxa

### Examples

    #
    data("esophagus")
    tree <- phy_tree(esophagus)
    OTU1 <- otu_table(esophagus)
    taxa_names(tree)
    taxa_names(OTU1)
    physeq1 <- phyloseq(OTU1, tree)
    taxa_names(physeq1)

[Package phyloseq version 1.24.2 Index]