Skip to contents

Split a character string of several words at commas to a vector.

Usage

separate_at_comma(x)

Arguments

x

String of words to split.

Author

Christoph Sax

Examples

x <- "sex, nat, resid, benef_type1, benef_type2"
separate_at_comma(x)
#> [1] "sex"         "nat"         "resid"       "benef_type1" "benef_type2"