getslots.phyloseq: Return the non-empty slot names of a phyloseq object.

View source: R/phyloseq-class.R

getslots.phyloseqR Documentation

Return the non-empty slot names of a phyloseq object.

Description

Like getSlots, but returns the class name if argument is component data object.

Usage

getslots.phyloseq(physeq)

Arguments

physeq

A phyloseq-class object. If physeq is a component data class, then just returns the class of physeq.

Value

identical to getSlots. A named character vector of the slot classes of a particular S4 class, where each element is named by the slot name it represents. If physeq is a component data object, then a vector of length (1) is returned, named according to its slot name in the phyloseq-class.

See Also

merge_phyloseq

Examples

#
 data(GlobalPatterns)
 getslots.phyloseq(GlobalPatterns)
 data(esophagus)
 getslots.phyloseq(esophagus)

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