Skip to contents

This function generates a value-meaning table by parsing the VALUES fields.

Usage

value_meaning_table(DD.dict)

Arguments

DD.dict

Data dictionary.

Value

A data frame with the columns VARNAME, TYPE, VALUE, MEANING.

Examples

data(ExampleB)
head(value_meaning_table(DD.dict.B))
#>     VARNAME                   TYPE VALUE       MEANING
#> 2 SAMPLE_ID integer, encoded value -9999 missing value
#> 3       SEX integer, encoded value     0          male
#> 4       SEX integer, encoded value     1        female
#> 5    HEIGHT decimal, encoded value -9999 missing value
#> 6    WEIGHT decimal, encoded value -9999 missing value
#> 7       BMI decimal, encoded value -9999 missing value