Learn R Programming

geeLite (version 1.0.2)

validate_variables_param: Validate and Process Parameters for Variable Selection and Data Processing

Description

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.

Usage

validate_variables_param(
  variables,
  variables_all,
  prep_fun,
  aggr_funs,
  postp_funs
)

Value

A character vector of variable names to process.

Arguments

variables

[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.

variables_all

[mandatory] (data.frame) A data frame containing all available variables, typically obtained from fetch_vars.

prep_fun

[mandatory] (function) A function used for pre-processing.

aggr_funs

[mandatory] (function or list) Aggregation function(s).

postp_funs

[mandatory] (function or list) Post-processing function(s).