longestCommonSuffix | R Documentation |
Like longestCommonPrefix(), but on the suffix.
longestCommonSuffix(strings)
strings |
Vector of strings |
Single string - might be empty ("")
longestCommonSuffix(c("123.ABC", "45677.ABC", "BC")) ## "BC"
longestCommonSuffix(c("123.ABC", "", "BC")) ## ""
longestCommonSuffix(c("123.ABC", "45677.ABC")) ## ".ABC"
longestCommonSuffix(c("nothing", "in", "common")) ## ""
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.