sample_names {phyloseq} | R Documentation

## Get sample names.

### Description

Get sample names.

### Usage

    sample_names(physeq)

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

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

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

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

### Arguments

`physeq` | (Required). A `phyloseq-class`, `sample_data`, or `otu_table-class`.

### Value

A character vector. The names of the samples in `physeq`.

### See Also

`taxa_names`, `nsamples`

### Examples

    data(esophagus)
    sample_names(esophagus)

[Package phyloseq version 1.38.0 Index]