rank_names: Retrieve the names of the taxonomic ranks

View source: R/almostAllAccessors.R

rank_namesR Documentation

Retrieve the names of the taxonomic ranks

Description

This is a simple accessor function to make it more convenient to determine the taxonomic ranks that are available in a given phyloseq-class object.

Usage

rank_names(physeq, errorIfNULL=TRUE)

Arguments

physeq

(Required). taxonomyTable-class, or phyloseq-class.

errorIfNULL

(Optional). Logical. Should the accessor stop with an error if the slot is empty (NULL)? Default TRUE.

Value

Character vector. The names of the available taxonomic ranks.

See Also

get_taxa taxa_names sample_names

Examples

data(enterotype)
rank_names(enterotype)

joey711/phyloseq documentation built on Nov. 4, 2022, 1:16 a.m.