rmLcPrefix: Remove longest common prefix.

rmLcPrefixR Documentation

Remove longest common prefix.

Description

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

Usage

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.

Author(s)

Tomas Sieger

See Also

rmLcPostfix, lcPrefix

Examples

rmLcPrefix(c('abcd','abef','aqwe'))

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