Helper functions for scalar variable generation (single variables at a time). Used by create_cat_var(), create_con_var(), create_date_var() when called with individual variable parameters (var_raw, cycle, etc.) rather than configuration data frames.
Details
These helpers work with recodeflow-style metadata (variables.csv + variable_details.csv from cchsflow/chmsflow). Get variable details for raw variable and cycle
Filters variable_details to rows matching a specific raw variable name and cycle. Handles multiple naming patterns from recodeflow packages.
Tries three matching strategies in order:
Database-prefixed format:
"cycle::var_raw"Bracket format:
"[var_raw]"with databaseStart filteringPlain format: exact match on variableStart with cycle filtering