hamming_distance | R Documentation |
Calculates the Hamming distance between two strings.
hamming_distance(s1, s2, pad = TRUE)
s1 |
The first string. |
s2 |
The second string. |
pad |
If true, the strings are padded to the same length (default: TRUE). |
An integer representing the Hamming distance.
hamming_distance("karolin", "kathrin")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.