Why do I not get same fuzzy match results when I flip strings in pattern and x in R's agrep?

32 Views Asked by At

So the following command gives me a match:
agrep(pattern = 'Ned Stark', x = 'Ned Stark**DUPL ENTRY', max.distance = 0.15, costs = NULL, ignore.case = TRUE, value = FALSE, fixed = TRUE, useBytes = FALSE)
But when I flip the two strings, then I no longer get a match
agrep(pattern = 'Ned Stark**DUPL ENTRY', x = 'Ned Stark', max.distance = 0.15, costs = NULL, ignore.case = TRUE, value = FALSE, fixed = TRUE, useBytes = FALSE)

0

There are 0 best solutions below