View source: R/qwerty_distance.R
| qwerty.dist | R Documentation |
Computes QWERTY distance for words that have the same number of characters. Distance is computed based on the number of keys a character is away from another character on a QWERTY keyboard
qwerty.dist(wordA, wordB)
qwerty_distance(word_a, word_b)
wordA |
Legacy name for 'word_a'. |
wordB |
Legacy name for 'word_b'. |
word_a |
Character. Word to be compared |
word_b |
Character. Word to be compared |
Numeric value for distance between word_a and word_b
Alexander Christensen <alexpaulchristensen@gmail.com>
# Identical values for Damerau-Levenshtein
stringdist::stringdist("big", "pig", method = "dl")
stringdist::stringdist("big", "bug", method = "dl")
# Different distances for QWERTY
qwerty_distance("big", "pig")
qwerty_distance("big", "bug") # Probably meant to type "bug"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.