prep_scalelevel_from_data_and_metadata: Heuristics to amend a SCALE_LEVEL column and a UNIT column in...

View source: R/prep_scalelevel_from_data_and_metadata.R

prep_scalelevel_from_data_and_metadataR Documentation

Heuristics to amend a SCALE_LEVEL column and a UNIT column in the metadata

Description

...if missing

Usage

prep_scalelevel_from_data_and_metadata(
  resp_vars = NULL,
  study_data,
  meta_data = "item_level",
  label_col = LABEL
)

Arguments

resp_vars

variable list the names of the measurement variables

study_data

data.frame the data frame that contains the measurements

meta_data

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

Value

data.frame modified metadata

Examples

## Not run: 
  prep_load_workbook_like_file("meta_data_v2")
  prep_scalelevel_from_data_and_metadata(study_data = "study_data")

## End(Not run)

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