remove_samples: Exclude Samples

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/remove_samples.R

Description

Filter out selected samples from a phyloseq object.

Usage

1
remove_samples(samples = NULL, x)

Arguments

samples

Names of samples to be removed.

x

phyloseq-class object

Details

This complements the phyloseq function prune_samples by providing a way to exclude given groups from a phyloseq object.

Value

Filtered phyloseq object.

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

To cite the microbiome R package, see citation('microbiome')

See Also

phyloseq::prune_samples, phyloseq::subset_samples

Examples

1
2
data(dietswap)
pseq <- remove_samples(c("Sample-182", "Sample-222"), dietswap)

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.