prep_extract_cause_label_df: Extract all missing/jump codes from metadata and export a...

View source: R/prep_extract_cause_label_df.R

prep_extract_cause_label_dfR Documentation

Extract all missing/jump codes from metadata and export a cause-label-data-frame

Description

Extract all missing/jump codes from metadata and export a cause-label-data-frame

Usage

prep_extract_cause_label_df(
  item_level = "item_level",
  label_col = VAR_NAMES,
  meta_data_v2,
  meta_data = item_level
)

Arguments

item_level

data.frame the data frame that contains metadata attributes of study data

label_col

variable attribute the name of the column in the metadata with labels of variables

meta_data_v2

character path to workbook like metadata file, see prep_load_workbook_like_file for details. ALL LOADED DATAFRAMES WILL BE PURGED, using prep_purge_data_frame_cache, if you specify meta_data_v2.

meta_data

data.frame old name for item_level

Value

list with the entries

  • meta_data data.frame a data frame that contains updated metadata – you still need to add a column MISSING_LIST_TABLE and add the cause_label_df as such to the metadata cache using prep_add_data_frames(), manually.

  • cause_label_df data.frame missing code table. If missing codes have labels the respective data frame are specified here, see cause_label_df.

See Also

prep_add_cause_label_df


dataquieR documentation built on Jan. 8, 2026, 5:08 p.m.