[R] agrep behavior

Eduardo Leoni leoniedu at msu.edu
Wed Jun 24 20:06:57 CEST 2009


Dear list -

I am a bit puzzled by the behavior of agrep:

The following command finds a match:

agrep("Staatssekretar im Bundeskanzleramt","Bundeskanzler",max.distance=.6)

But if I _increase_ the maximum distance to .9 it fails:

agrep("Staatssekretar im Bundeskanzleramt","Bundeskanzler",max.distance=.9)

What am I missing? (If we use integers in max.distance the threshold
is between 30 and 31)

-Eduardo




More information about the R-help mailing list