get missing codes from metadata (e.g. MISSING_LIST or JUMP_LIST)
util_get_code_list(
x,
code_name,
split_char = SPLIT_CHAR,
mdf,
label_col = VAR_NAMES,
warning_if_no_list = TRUE,
warning_if_unsuitable_list = TRUE
)numeric vector of missing codes.
variable the name of the variable to retrieve code lists for. only one variable at a time is supported, not vectorized!!
variable attribute JUMP_LIST or MISSING_LIST: Which codes to retrieve.
character len = 1. Character(s) used to separate
different codes in the metadata, usually |,
as in 99999|99998|99997.
data.frame the data frame that contains metadata attributes of study data
variable attribute the name of the column in the metadata with labels of variables
logical len = 1. If TRUE, a warning is
displayed, if no missing
codes are available for a
variable.
logical len = 1. If TRUE, a warning is
displayed, if missing
codes do not match with a
variable' data type.
Other missing_functions:
util_all_intro_vars_for_rv(),
util_count_expected_observations(),
util_filter_missing_list_table_for_rv(),
util_is_na_0_empty_or_false(),
util_observation_expected(),
util_remove_empty_rows(),
util_replace_codes_by_NA()