[R] Matching long strings ... was Re: Memory management in R

Lorenzo Isella lorenzo.isella at gmail.com
Sun Oct 10 17:06:24 CEST 2010


On 10/10/2010 04:11 PM, David Winsemius wrote:
> length(matchPattern(fut_string, past_string)@start ) == 0

Wow, thanks a lot!
I am still testing this, but it looks like this is a good replacement 
for grepl. Definitely, since I am not a life scientist even from afar by 
training, this solution/analogy with sequencing in biology would have 
never come to my mind.
Cheers

Lorenzo



More information about the R-help mailing list