dot-hamming: Wrapper for .C Hamming function

.hammingR Documentation

Wrapper for .C Hamming function

Description

Align and calculate distance betweeen two strings based on Hamming distance

Usage

.hamming(string1, string2, cutoff = 99999)

Arguments

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

Value

the hamming distance between two strings

Author(s)

Scott Sherrill-Mix R@sherrillmix.com

References

http://en.wikipedia.org/wiki/Hamming_distance

Examples

levenR:::.hamming('aazaazaaz','aayaayaay')
levenR:::.hamming('aazaazaaz','aayaayaay',cutoff=2)
levenR:::.hamming('ss','ss')

sherrillmix/levenR documentation built on Oct. 25, 2023, 11:42 a.m.