Description Usage Arguments Value
View source: R/util_assign_levlabs.R
function to assign labels to levels of a variable
1 2 3 4 5 6 7 | util_assign_levlabs(
variable,
string_of_levlabs,
splitchar,
assignchar,
ordered = 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 |
a data.frame with labels assigned to categorical variables (if available)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.