R/hamming.neighbors.R

Defines functions hamming.neighbors

Documented in hamming.neighbors

hamming.neighbors <-
function(source, targets){
    results<-list()
    distances<-hamming.distance(source, targets)
    for (distance in sort(unique(distances))){
        results[distance]=list(names(which(distances==distance)))
    }
    return(results)
}

Try the vwr package in your browser

Any scripts or data that you put into this service are public.

vwr documentation built on May 2, 2019, 4:23 a.m.