Learn R Programming

phyloseq (version 1.16.2)

get_sample: Returns all abundance values for species i.

Description

This is a simple accessor function for investigating a single species-of-interest.

Usage

get_sample(physeq, i)

## S3 method for class 'otu_table': get_sample(physeq, i)

## S3 method for class 'phyloseq': get_sample(physeq, i)

Arguments

physeq
i
(Required). A single taxa/species/OTU ID for which you want to know the abundance in each sample.

Value

  • An integer vector of the abundance values for each sample in physeq for species i

See Also

get_taxa taxa_names sample_names

Examples

Run this code
data(esophagus)
taxa_names(esophagus)
get_sample(esophagus, "59_5_19")

Run the code above in your browser using DataLab