Get startedGet started for free

Is one distance better than the other?

The Levenshtein distance between "Rcik Caplan" and "Rick Caplan" is 2, the q-gram distance is 6. Does this mean the Levenshtein distance is working better in this example than the q-gram method?

This exercise is part of the course

Intermediate Regular Expressions in R

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise