prep_compare_meta_with_study: Verify item-level metadata

View source: R/prep_compare_meta_with_study.R

prep_compare_meta_with_studyR Documentation

Verify item-level metadata

Description

are the provided item-level meta_data plausible given study_data?

Usage

prep_compare_meta_with_study(
  study_data,
  label_col,
  item_level = "item_level",
  meta_data = item_level,
  meta_data_v2
)

Arguments

study_data

data.frame the data frame that contains the measurements

label_col

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

item_level

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

meta_data

data.frame old name for item_level

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.

Value

an invisible() list with the entries.

  • pred data.frame metadata predicted from study_data, reduced to such metadata also available in the provided metadata

  • prov data.frame provided metadata, reduced to such metadata also available in the provided study_data

  • ml_error character VAR_NAMES of variables with potentially wrong MISSING_LIST

  • sl_error character VAR_NAMES of variables with potentially wrong SCALE_LEVEL

  • dt_error character VAR_NAMES of variables with potentially wrong DATA_TYPE


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