Takes a string an creates a vector using sep as the separator
parseArg(x, sep, trim = T)
x | String - if a vector only first element will be considred |
---|---|
sep | String - if vector only first element will be considered |
trim | Logical - if TRUE white spaces will be eliminated |
Character vector - with elements as characters after splitting by sep
parseArg("A, B, C", sep = ",")#> [1] "A" "B" "C"