I want to smash this vector
c("CC", "C/C")
to
[[1]] [1] "C" "C" [[2]] [1] "C" "C"
My final data should look like this:
c("C_C", "C_C")
Thus, I need a little regex , but not find how to solve the "non-space" part:
strsplit(c("CC", "C/C"),"|/")
split regex r
Jimbou
source share