Learn R Programming

vwr (version 0.3.0)

hamming.neighbors: Compute Hamming neighbors

Description

List the neighbors of a character string by Hamming distance.

Usage

hamming.neighbors(source, targets)

Arguments

source
A character string.
targets
Potential Hamming neighbors.

Value

A list of neighbors at each distance.

See Also

hamming.distance, stringdist

Examples

Run this code
data(english.words)
hamming.neighbors('electroencephalogram',english.words)
hamming.neighbors('hello',english.words)

Run the code above in your browser using DataLab