hamming: Find hamming distance between many strings

View source: R/leven.R

hammingR Documentation

Find hamming distance between many strings

Description

Find hamming distance between many strings

Usage

hamming(strings1, strings2 = NULL, oneToOne = FALSE, cutoff = 99999, vocal = 0)

Arguments

strings1

vector of strings to compare to strings2 (or as strings1 x strings1 if strings2==NULL)

strings2

vector of strings to compare to strings1 or NULL (either strings1 or strings2 should be 1 or should have equal lengths)

oneToOne

compare strings1[1] to strings2[1], strings1[2] to strings2[2],... (both vectors must be same length)

cutoff

an integer giving a distance to stop checking beyond and instead return the cutoff value

vocal

Integer to display a status message every vocal iterations

Value

Hamming distance matrix

Author(s)

Scott Sherrill-Mix R@sherrillmix.com

References

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


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