prep_valuelabels_from_data: Get value labels from data

View source: R/prep_valuelabels_from_data.R

prep_valuelabels_from_dataR Documentation

Get value labels from data

Description

Detects factors and converts them to compatible metadata/study data.

Usage

prep_valuelabels_from_data(resp_vars = colnames(study_data), study_data)

Arguments

resp_vars

variable names of the variables to fetch the value labels from the data

study_data

data.frame the data frame that contains the measurements

Value

a list with:

  • VALUE_LABELS: vector of value labels and modified study data

  • ModifiedStudyData: study data with factors as integers

Examples

dataquieR::prep_datatype_from_data(iris)

dataquieR documentation built on Aug. 31, 2022, 5:08 p.m.