hamming_similarity | R Documentation |
Measures the similarity between two strings using the Hamming metric.
hamming_similarity(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 similarity.
hamming_similarity("karolin", "kathrin")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.