rmLcPrefix removes the longest common postfix from a vector of strings.

rmLcPostfix(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

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