How can "abteam" with "ab" be matched using this code?
agrep("abteam",c("acb","abd","ab"),value=T,ignore.case = TRUE,max = list(del = 10, ins = 10, sub = 10))
The result is character(0), though I specified del=10, ins=10. What is the problem? How does agrep work?
From the help file:
As far as I understand it means that either
costorallis a limiting factor even if you setdel,insandsub. If you want to allow 10 transformations you can simply setmax = 10. Additional parameters can be used to limit specific transformations, for example:In your case you could use
max = list(all = 10 ,del = 10, ins = 10, sub = 10)).