Learn R Programming

phyloseq (version 1.16.2)

getslots.phyloseq: 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

Run this code
#
 data(GlobalPatterns)
 getslots.phyloseq(GlobalPatterns)
 data(esophagus)
 getslots.phyloseq(esophagus)

Run the code above in your browser using DataLab