dot-trimFromStart: Trim from start (Deprecated)

.trimFromStartR Documentation

Trim from start (Deprecated)

Description

Deprecated Version - This function allows trimming/removing redundant text-fragments from start

Usage

.trimFromStart(
  x,
  ...,
  minNchar = 1,
  silent = TRUE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

x

character vector to be treated

...

more vectors to be treated

minNchar

(integer) minumin number of characters that must remain

silent

(logical) suppress messages

debug

(logical) display additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

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")
.trimLeft(txt1)  # replacement

wrMisc documentation built on Sept. 11, 2024, 6:10 p.m.