nm_select_records: Select Records from NONMEM-ish Data Set

View source: R/ubiquity.r

nm_select_recordsR Documentation

Select Records from NONMEM-ish Data Set

Description

Retrieves a subset of a NONMEM-ish data set based on a list containing filtering information.

Usage

nm_select_records(cfg, values, filter)

Arguments

cfg

ubiquity system object

values

dataframe containing the dataset with column headers

filter

list with element names as headers for values with values from the same header OR'd and values across headers AND'd

Details

If the dataset has the headings ID, DOSE and SEX and filter has the following format:

filter = list()
filter$ID   = c(1:4)
filter$DOSE = c(5,10)
filter$SEX  = c(1)

It would be translated into the boolean filter:

((ID==1) | (ID==2) | (ID==3) | (ID==4)) & ((DOSE == 5) | (DOSE==10)) & (SEX == 1)

Value

subset of dataset


ubiquity documentation built on Nov. 2, 2023, 6:26 p.m.