getslots.phyloseq {phyloseq} | R 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)

[Package phyloseq version 1.34.0 Index]