validate_variables_param: Validate and Process Parameters for Variable Selection and...

View source: R/utils.R

validate_variables_paramR Documentation

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
)

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

Value

A character vector of variable names to process.


geeLite documentation built on Aug. 9, 2025, 1:08 a.m.