[R] overlapping pattern match

Yiping Fan yfan at diversa.com
Fri Mar 28 02:34:05 CET 2003


Hi, all,
     I have a string like  "aaacdf",  I want to find how many "aa" in the
string. Obviously, It is 2 in this case.  it is easy to do in Perl, but how
to do such  overlapping match in R or Splus.  Thanks!

Y.Fan



More information about the R-help mailing list