prep_extract_cause_label_df {dataquieR} | R 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
|
meta_data |
data.frame old name for |
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 thecause_label_df
as such to the metadata cache usingprep_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.