Skip to contents

Helper to fix value labels when loading HTS tables. Drops duplicates and formats income_broad labels. Use for cleaning value label tables.

Usage

fix_value_labels_on_load(dt, settings)

Arguments

dt

data.table. Value labels table.

settings

list. Pipeline settings object.

Value

data.table. Cleaned value labels.

Details

  • Updates income_broad labels using settings.

  • Drops duplicate variable-value pairs and reports them.

  • Returns a copy; does not modify by reference.

Settings

None.

Examples

## Not run:
dt <- data.table(variable = "income_broad", value = 1)
settings <- list()
fix_value_labels_on_load(dt, settings)
#> Error in fix_value_labels_on_load(dt, settings): could not find function "fix_value_labels_on_load"
## End(Not run)