util_get_encoding {dataquieR} | R Documentation |
Get encoding from metadata or guess it from data
Description
Get encoding from metadata or guess it from data
Usage
util_get_encoding(
resp_vars = colnames(study_data),
study_data,
label_col,
meta_data,
meta_data_dataframe
)
Arguments
resp_vars |
variable the names of the measurement variables, if
missing or |
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 |
meta_data |
data.frame old name for |
meta_data_dataframe |
data.frame the data frame that contains the metadata for the data frame level |
Value
named vector of valid encoding strings matching resp_vars
[Package dataquieR version 2.5.1 Index]