prefix_similarity | R Documentation |
Computes the similarity of the prefixes of two strings based on their number of matching characters.
prefix_similarity(s1, s2, score_cutoff = 0L)
s1 |
A string. The first input string. |
s2 |
A string. The second input string. |
score_cutoff |
An optional minimum threshold for the similarity score. Defaults to 0. |
The prefix similarity as an integer.
prefix_similarity("abcdef", "abcxyz")
prefix_similarity("abcdef", "abcxyz", score_cutoff = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.