The smallest possible data set we could filter to semi-join later

data_to_filter(datafile, input_filter_df)

Arguments

datafile

list of ADaM-ish dataframes

input_filter_df

The name of a dataset stored in `datafile`

Value

A `data.frame` object based on the reduction of `datafile` from `input_filter_df`.

Examples

if(interactive()) {
  datalist <- list(ADSL = tidyCDISC::adsl, ADAE = tidyCDISC::adae, 
                   ADVS = tidyCDISC::advs, ADLBC = tidyCDISC::adlbc, 
                   ADTTE = tidyCDISC::adtte)

  # Returns combined dataset
  data_to_filter(datalist, c("ADSL", "ADAE"))
}