prep_meta_data_v1_to_item_level_meta_data: Convert item-level metadata from v1.0 to v2.0

View source: R/prep_meta_data_v1_to_item_level_meta_data.R

prep_meta_data_v1_to_item_level_meta_dataR Documentation

Convert item-level metadata from v1.0 to v2.0

Description

This function is idempotent..

Usage

prep_meta_data_v1_to_item_level_meta_data(
  meta_data = "item_level",
  verbose = TRUE,
  label_col = LABEL,
  cause_label_df
)

Arguments

meta_data

data.frame the old item-level-metadata

verbose

logical display all estimated decisions, defaults to TRUE, except if called in a dq_report2 pipeline.

label_col

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

cause_label_df

data.frame missing code table, see cause_label_df. Optional. If this argument is given, you can add missing code tables.

Details

The options("dataquieR.force_item_specific_missing_codes") (default FALSE) tells the system, to always fill in res_vars columns to the MISSING_LIST_TABLE, even, if the column already exists, but is empty.

Value

data.frame the updated metadata


dataquieR documentation built on May 29, 2024, 7:18 a.m.