splat.phyloseq.objects: Convert 'phyloseq-class' into a named list of its non-empty...

View source: R/phyloseq-class.R

splat.phyloseq.objectsR Documentation

Convert phyloseq-class into a named list of its non-empty components.

Description

This is used in internal handling functions, and one of its key features is that the names in the returned-list match the slot-names, which is useful for constructing calls with language-computing functions like do.call. Another useful aspect is that it only returns the contents of non-empty slots. In general, this should only be used by phyloseq-package developers. Standard users should not need or use this function, and should use the accessors and other tools that leave the multi-component object in one piece.

Usage

splat.phyloseq.objects(x)

Arguments

x

A phyloseq-class object. Alternatively, a component data object will work, resulting in named list of length 1.

Value

A named list, where each element is a component object that was contained in the argument, x. Each element is named according to its slot-name in the phyloseq-object from which it is derived. If x is already a component data object, then a list of length (1) is returned, also named.

See Also

merge_phyloseq

Examples

#

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