Description Usage Arguments Value
Find the longest common substring in two character strings. For character vectors,
use longest_substring_vec
.
1 | longest_substring(a, b, default = NA_character_)
|
a |
a character. |
b |
a character. |
Returns the longest common substring of two characters. If multiple longest substrings of equal length are found, function will return the leftmost string.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.