prep_study2meta {dataquieR}R Documentation

Guess a meta data frame from study data.

Description

Guess a minimum meta data frame from study data. Minimum required variable attributes are:

Usage

prep_study2meta(
  study_data,
  level = c(VARATT_REQUIRE_LEVELS$REQUIRED, VARATT_REQUIRE_LEVELS$OPTIONAL)
)

Arguments

study_data

data.frame the data frame that contains the measurements

level

enum level to provide (see also VARATT_REQUIRE_LEVELS)

Details

dataquieR:::util_get_var_att_names_of_level(VARATT_REQUIRE_LEVELS$REQUIRED)
##      VAR_NAMES      DATA_TYPE   MISSING_LIST 
##    "VAR_NAMES"    "DATA_TYPE" "MISSING_LIST"

The function also tries to detect missing codes.

Value

a meta_data data frame


[Package dataquieR version 1.0.5 Index]