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