# S3 method for list
log_filter(
data,
condition,
table,
by = c("USUBJID", "STUDYID"),
suffix = NULL,
verbose = FALSE,
...
)
Value
a data.frame or list of data.frame filtered for the provided conditions.
Arguments
data
(data.frame) input data to subset, or named (list of data.frame).
condition
(call) of subset condition. Must evaluate as logical.
...
further arguments to be passed to or from other methods.
suffix
(string) optional argument describing the filter.
table
(string) table name.
by
(character) variable names shared by adsl and other datasets for filtering.
verbose
(flag) whether to print a report about the filtering.
Details
log_filter will filter the data/named list of data according to the condition.
All the variables in condition must exist in the data (as variables) or in the parent
frame(e.g., in global environment).
For named list of data, if ADSL is available, log_filter will also try to subset all
other datasets with USUBJID.