lcPostfix: Longest common postfix.

lcPostfixR Documentation

Longest common postfix.

Description

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

Usage

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.

Author(s)

Tomas Sieger

See Also

lcPrefix,rmLcPostfix

Examples

lcPostfix(c('abab','cdab'))

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