I have an object containing a text string:
x <- "xxyyxyxy"
and I want to turn that into a vector with each element containing two letters:
[1] "xx" "yy" "xy" "xy"
it seems like the strsplit() should be my ticket, but since I have no regular expression foo, I can't figure out how to make this function chop the string up the way I want it. How should I do this?