Extract target mapping from settings
get_target_map.RdBuild a list of mapping information for each target from the settings list. Use to retrieve variable labels, levels, and label-levels for reporting and tabulation.
Details
Iterates through all targets in settings, extracting label, levels, and label-levels.
Handles character, list, and nested label-levels; removes duplicates and NAs.
Returns a named list for each target.
Assumes valid settings structure; errors if missing.
See also
find_level_idxscripts/reporting/get_target_map.R
Other reporting utilities:
find_level_idx(),
summarize_data(),
summarize_pums(),
summarize_survey(),
tabulate_target()