unexpected agrep() results related to max.distance in R
This was tweeted to me by @leoniedu today and I don't have an answer for him so I thought I would post it here. I have read the documentation for agrep() (fuzzy string matching) and it appears that I don't fully understand the max.distance parameter. Here's an example: pattern <- "Staatssekretar im Bundeskanzleramt" x <- "Bundeskanzle...