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

rmLcPrefix(x, ignore.case = FALSE)

Arguments

x

a vector of character strings

ignore.case

Value

A character string vector having the longest common prefix removed.

See also

Examples

rmLcPrefix(c('abcd','abef','aqwe'))
#> [1] "bcd" "bef" "qwe"