split_variable_names.Rd
splits comma or plus separated variable names into a character vector
split_variable_names(predictors_vector, acronyms = NULL, split_by = "[\\+,]")
predictors_vector | character vector of comma or plus separated variable lists |
---|---|
acronyms | tibble with two character columns: acronym, meaning |
split_by | regex expression, comma and plus by default |
character vector with variable names
splits comma or plus separated variable names into a character vector. Duplicate variable names are removed. For a vector input just collects all variable names.
#> [1] "aaa" "bbb" "ccc" "ddd"