On Thu, Nov 18, 2010 at 12:23 AM, Dickison, Daniel <ddicki...@carnegielearning.com> wrote: > On 11/17/10 6:06 PM, "Joris Meys" <jorism...@gmail.com> wrote: > > It looks like R's agrep defaults max.distance$all to 0.1 if unspecified by > the argument, so that explains these examples (the first and last one have > a net distance of 2, which is > ceiling(0.1 * nchar(pattern))).
Stupid I missed that. Adding all=3 solves the problem indeed. Funny that all is not set to a more sensible value when one is set. ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel