pmx_filter: filter data in a pmx controller

Description Usage Arguments Value Examples

View source: R/pmx-filter.R

Description

filter data in a pmx controller

Usage

1
2
3
4
5
6
pmx_filter(
  ctr,
  data_set = c("estimates", "predictions", "eta", "finegrid", "shrink", "input",
    "individual", "sim_blq"),
  pmx_exp
)

Arguments

ctr

A controller. An object of 'pmxClass'

data_set

A data_set within the controller to apply a filter to.

pmx_exp

A filter expression

Value

Returns a pmx controller with a filtered data set.

Examples

1
2
3
4
## example of global filter
ctr <- theophylline()
ctr %>% pmx_filter(data_set = "prediction", ID == 5 & TIME < 2)
ctr %>% get_data("prediction")

ggPMX documentation built on Sept. 20, 2021, 5:09 p.m.