powered by
Deprecated Version - This function allows trimming/removing redundant text-fragments from end
.trimFromEnd(x, ..., callFrom = NULL, debug = FALSE, silent = TRUE)
This function returns a modified character vector
character vector to be treated
more vectors to be treated
(character) allow easier tracking of messages produced
(logical) display additional messages for debugging
(logical) suppress messages
trimRedundText; Inverse : Find/keep common text keepCommonText; you may also look for related functions in package stringr
trimRedundText
keepCommonText
txt1 <- c("abcd_ccc","bcd_ccc","cde_ccc") .trimRight(txt1)
Run the code above in your browser using DataLab