[R] strsplit question

Remko Duursma remkoduursma at gmail.com
Wed Oct 12 07:26:34 CEST 2011


Hi Erin,

this is one way:


Block <- c("5600-5699","6100-6199","9700-9799","9400-9499","8300-8399")

splBlock <- strsplit(Block,"-")

sapply(splBlock, "[", 1)



greetings,
Remko

--
View this message in context: http://r.789695.n4.nabble.com/strsplit-question-tp3896847p3896850.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list