View source: R/util_assign_levlabs.R
util_assign_levlabs | R Documentation |
function to assign labels to levels of a variable
util_assign_levlabs(
variable,
string_of_levlabs,
splitchar,
assignchar,
ordered = TRUE,
variable_name = "",
warn_if_inadmissible = TRUE
)
variable |
vector vector with values of a study variable |
string_of_levlabs |
character len=1. value labels,
e.g. |
splitchar |
character len=1. splitting character(s) in
|
assignchar |
character len=1. assignment operator character(s) in
|
ordered |
the function converts |
variable_name |
character the name of the variable being converted for warning messages |
warn_if_inadmissible |
logical warn on con_inadmissible_categorical values |
a data.frame with labels assigned to categorical variables (if available)
Other data_management:
util_check_data_type()
,
util_check_group_levels()
,
util_compare_meta_with_study()
,
util_dichotomize()
,
util_merge_data_frame_list()
,
util_rbind()
,
util_remove_na_records()
,
util_replace_hard_limit_violations()
,
util_study_var2factor()
,
util_table_of_vct()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.