View source: R/string_similarities.R
hamming_distance | R Documentation |
Calculate Hamming distance of two character vectors
hamming_distance(a, b)
a |
the first character vector |
b |
the first character vector |
a vector of hamming similarities of the strings
hamming_distance(
c("ACGTCGATGACGTGATGCGTAGCGTA", "ACGTCGATGTGCTCTCGTCGATCTAC"),
c("ACGTCGACGACGTGATGCGCAGCGTA", "ACGTCGATGGGGTCTCGTCGATCTAC")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.