rmLcPostfix: Remove longest common postfix.

rmLcPostfixR Documentation

Remove longest common postfix.

Description

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

Usage

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.

Author(s)

Tomas Sieger

See Also

rmLcPrefix, lcPostfix

Examples

rmLcPostfix(c('abab','cdab'))

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.