hamming_distance: Calculate Hamming distance of two character vectors

View source: R/string_similarities.R

hamming_distanceR Documentation

Calculate Hamming distance of two character vectors

Description

Calculate Hamming distance of two character vectors

Usage

hamming_distance(a, b, nthread = NULL)

Arguments

a

the first character vector

b

the first character vector

nthread

Maximum number of threads to use. If NULL (default), Rayon's global thread pool is used, which typically uses all logical CPU cores available.

Value

a vector of hamming similarities of the strings

Examples

hamming_distance(
  c("ACGTCGATGACGTGATGCGTAGCGTA", "ACGTCGATGTGCTCTCGTCGATCTAC"),
  c("ACGTCGACGACGTGATGCGCAGCGTA", "ACGTCGATGGGGTCTCGTCGATCTAC")
)


zoomerjoin documentation built on March 14, 2026, 5:07 p.m.