Learn R Programming

phyloseq (version 1.16.2)

ntaxa: Get the number of taxa/species.

Description

Get the number of taxa/species.

Usage

ntaxa(physeq)

## S3 method for class 'ANY': ntaxa(physeq)

## S3 method for class 'phyloseq': ntaxa(physeq)

## S3 method for class 'otu_table': ntaxa(physeq)

## S3 method for class 'taxonomyTable': ntaxa(physeq)

## S3 method for class 'phylo': ntaxa(physeq)

## S3 method for class 'XStringSet': ntaxa(physeq)

Arguments

Value

  • An integer indicating the number of taxa / species.

See Also

taxa_names

Examples

Run this code
data("esophagus")
ntaxa(esophagus)
phy_tree(esophagus)
ntaxa(phy_tree(esophagus))

Run the code above in your browser using DataLab