.hamming | R Documentation |
Align and calculate distance betweeen two strings based on Hamming distance
.hamming(string1, string2, cutoff = 99999)
string1 |
A single string or vector of strings |
string2 |
Another single string or vector of strings |
cutoff |
an integer giving a distance to stop checking beyond and instead return the cutoff value |
the hamming distance between two strings
Scott Sherrill-Mix R@sherrillmix.com
http://en.wikipedia.org/wiki/Hamming_distance
levenR:::.hamming('aazaazaaz','aayaayaay')
levenR:::.hamming('aazaazaaz','aayaayaay',cutoff=2)
levenR:::.hamming('ss','ss')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.