remove_samples {microbiome} | R Documentation

## Exclude Samples

### Description

Filter out selected samples from a phyloseq object.

### Usage

    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

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

[Package microbiome version 1.14.0 Index]