st_select: Filter, select, or mutate data

View source: R/table-object.R

st_selectR Documentation

Filter, select, or mutate data

Description

These functions modify the input data frame prior to passing it to stable() or stable_long().

Usage

st_select(x, ...)

st_mutate(x, ...)

st_filter(x, ...)

Arguments

x

an stobject.

...

passed to dplyr::select(), dplyr::mutate(), or dplyr::filter().

Details

  • st_select calls dplyr::select on the data

  • st_mutate calls dplyr::mutate on the data

  • st_filter calls dplyr::filter on the data

Examples

tab <- pt_data_inventory(pmt_obs, by = "FORM")
obj <- st_new(tab)
st_filter(obj, FORM != "troche")
st_select(obj, -contains("BQL"))
st_mutate(obj, FORM = ifelse(FORM=="tablet", "ODT", FORM))


metrumresearchgroup/pmtables documentation built on Dec. 22, 2024, 1:34 a.m.