lcPrefix.Rd
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.
#> [1] "a"