ps_select: Select phyloseq sample_data using dplyr::select syntax

View source: R/ps_select.R

ps_selectR Documentation

Select phyloseq sample_data using dplyr::select syntax

Description

Simple selection of phyloseq sample_data variables, might be useful for printing reduced sample_data, or inside other functions

Usage

ps_select(ps, ...)

Arguments

ps

phyloseq with sample_data

...

passed straight to dplyr::select

Value

phyloseq object

Examples

library(phyloseq)
library(dplyr)
data("enterotype", package = "phyloseq")

head(sample_data(enterotype))

enterotype %>%
  ps_select(!contains("Sample")) %>%
  sample_data() %>%
  head()

david-barnett/microViz documentation built on April 17, 2025, 4:25 a.m.