Validates and processes input parameters related to variable selection and
data processing in the read_db
function. It ensures that the
variables, frequency, and functions provided are valid, correctly formatted,
and compatible with the available data.
validate_variables_param(
variables,
variables_all,
prep_fun,
aggr_funs,
postp_funs
)
A character vector of variable names to process.
[mandatory] (character or integer) Variable IDs or names to
be processed. Use fetch_vars
to obtain valid variable names
or IDs. Accepts "all"
to select all available variables.
[mandatory] (data.frame) A data frame containing all
available variables, typically obtained from fetch_vars
.
[mandatory] (function) A function used for pre-processing.
[mandatory] (function or list) Aggregation function(s).
[mandatory] (function or list) Post-processing function(s).