Hamming Distances of Vectors
hamming.distance.RdIf both x and
y are vectors, hamming.distance returns the Hamming
distance (number of different elements) between this two vectors. If
x is a matrix, the Hamming distances between the rows of x
are computed and y is ignored.