I have a character vector
x <- "nkiLVkqspmLVAydnaVNLSCkys"
I want to split it into a vector with 25 elements, so that:
x[1]
# [1] "n"
x[2]
# [1] "k"
# and so on ...
The only thing I can think of is to do a regex
replace any alpha character with alpha and ","
and then split on ","
. Is there a simpler way to do this?