[R] need help with strsplit function
njhuang86
njhuang86 at yahoo.com
Thu Jun 11 17:44:12 CEST 2009
Hi, if I have this string: "a.b.c.d" and I use this function:
unlist(strsplit("a.b.c.d", "\\.")), I get this as my output: "a", "b", "c",
and "d". Is there a way to just split on the first period so I obtain only
two pieces like: "a" and "b.c.d"? Anyways, thanks in advance!
--
View this message in context: http://www.nabble.com/need-help-with-strsplit-function-tp23983888p23983888.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list