lcPostfix returns the longest common postfix of a vector of strings.

lcPostfix(x, ignore.case = FALSE)

Arguments

x

a vector of character strings

ignore.case

Value

A character string vector having the longest common postfix removed.

See also

Examples

lcPostfix(c('abab','cdab'))
#> [1] "ab"