I am working with a database that should be separated by several delimiters. The most common are semicolons and a point followed by a slash: './'.
How do I complete the code in order to apply both delimiters?
library(tidyverse)
library(splitstackshape)
values <- c("cat; dog; mouse", "cat ./ dog ./ mouse")
data <- data.frame(cbind(values))
separated <- cSplit(data.frame(data), "values", sep = ";", drop = TRUE)
I tried a vector solution but without much success.