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)

Arguments

a

the first character vector

b

the first character vector

Value

a vector of hamming similarities of the strings

Examples

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


zoomerjoin documentation built on April 13, 2025, 9:08 a.m.