[R] locate substring in the string it belong to
kevinchang
shukai at seas.upenn.edu
Mon Jul 20 10:43:12 CEST 2009
Hi R users,
I am trying generate the indices for locating a in the string it come from.
Given the length of the string, it will take too long using the combn() for
further comparison. I am wondering if R has any built-in function for this
purpose.
To make it concrete:
this.substring="cc"
this.string="ccc"
start.location=1,2
end.location=2,3
Thanks in advance,
Kevin
--
View this message in context: http://www.nabble.com/locate-substring-in-the-string-it-belong-to-tp24565937p24565937.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list