phyloseq (version 1.16.2)

get_taxa: Returns all abundance values of sample i.

Description

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

Usage

get_taxa(physeq, i)

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

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

Arguments

physeq
i
(Required). A single sample for which you want to know the abundance of each species. Can be integer for index value, or sample name.

Value

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

See Also

get_sample taxa_names sample_names

Examples

Run this code
data(esophagus)
sample_names(esophagus)
get_taxa(esophagus, "B")

Run the code above in your browser using DataCamp Workspace