lcPrefix | R Documentation |
lcPrefix
returns the longest common prefix of
a vector of strings.
lcPrefix(x, ignore.case = FALSE)
x |
a vector of character strings |
ignore.case |
The implementation adapted after https://stackoverflow.com/questions/28273716/r-implementation-for-finding-the-longest-common-starting-substrings-in-a-set-of
The longest common prefix.
Tomas Sieger
lcPostfix
,rmLcPrefix
lcPrefix(c('abcd','abef','aqwe'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.