powered by
Methods to auto-expand a delimited string into a list of unique values
getDistinctValues(entry, delimiter, trim = TRUE, ignore_case = FALSE)
list
A list of distinct values found in the entry string
A string to parse.
A single character to split the string on.
Boolean flag to signify if the leading and trailing whitespace should be trimmed for each value found.
Boolean flag to indicate if the unique values extracted should ignore case differences or not.
values <- getDistinctValues("a;b;c", ';')
Run the code above in your browser using DataLab