Select really numeric variables
Reduce resp_vars
to those, which are either float
or integer
without VALUE_LABELS , i.e. likely numeric but not a factor
util_no_value_labels(resp_vars, meta_data, label_col, warn = TRUE, stop = TRUE)
resp_vars
: variable list len=1-2. the name of the continuous measurement variablemeta_data
: data.frame the data frame that contains metadata attributes of study datalabel_col
: variable attribute the name of the column in the metadata with labels of variableswarn
: logical warn about removed variable namesstop
: logical stop on no matching resp_var
character vector of matching resp_vars
.
Other metadata_management: util_dist_selection()
, util_find_free_missing_code()
, util_find_var_by_meta()
, util_get_var_att_names_of_level()
, util_get_vars_in_segment()
, util_looks_like_missing()
, util_validate_known_meta()
, util_validate_missing_lists()
Useful links