Skip to content
Prev 131163 / 398502 Next

strsplit on comma, with a trailing comma in input

dankelley wrote:
Hmm, I don't think strsplit can do that. However:

 > scan(textConnection("a,,b,"), sep=",", what="")
Read 4 items
[1] "a" ""  "b" ""