dot-trimFromEnd: Trim from end

.trimFromEndR Documentation

Trim from end

Description

This function allows trimming/removing redundant text-fragments from end

Usage

.trimFromEnd(x, ..., callFrom = NULL, debug = FALSE, silent = TRUE)

Arguments

x

character vector to be treated

...

more vectors to be treated

callFrom

(character) allow easier tracking of messages produced

debug

(logical) display additional messages for debugging

silent

(logical) suppress messages

Value

This function returns a modified character vector

See Also

trimRedundText; Inverse : Find/keep common text keepCommonText; you may also look for related functions in package stringr

Examples

txt1 <- c("abcd_ccc","bcd_ccc","cde_ccc")
.trimFromEnd(txt1)

wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.