Skip to contents

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

Usage

get_target_map(settings)

Arguments

settings

list. Must include targets with mapping info.

Value

named list. One entry per target with label, levels, and label-levels.

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.

Settings

  • targets (direct): Target definitions. Default from settings.

See also

  • find_level_idx

  • scripts/reporting/get_target_map.R

Other reporting utilities: find_level_idx(), summarize_data(), summarize_pums(), summarize_survey(), tabulate_target()

Examples

## Not run:
get_target_map(settings)
#> Error: object 'settings' not found
## End(Not run)