prep_compare_meta_with_study {dataquieR} | R 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 |
meta_data_v2 |
character path to workbook like metadata file, see
|
Value
an invisible()
list with the entries.
-
pred
data.frame metadata predicted fromstudy_data
, reduced to such metadata also available in the provided metadata -
prov
data.frame provided metadata, reduced to such metadata also available in the providedstudy_data
-
ml_error
characterVAR_NAMES
of variables with potentially wrongMISSING_LIST
-
sl_error
characterVAR_NAMES
of variables with potentially wrongSCALE_LEVEL
-
dt_error
characterVAR_NAMES
of variables with potentially wrongDATA_TYPE