[R] convert delimited string to vector

Brad Christoffersen bchristo at email.arizona.edu
Mon Mar 31 15:43:52 CEST 2008


Hi R Users,

Simple question:  How might I convert the text "a, b, c" (or for that matter "a
b c" with any delimiter - space, comma, etc.) into a 3-element character
vector?

[1] a b c

Thanks,
Brad



More information about the R-help mailing list