delLCS: Removes the longest common suffix (LCS) from a vector of...

View source: R/fcn_misc.R

delLCSR Documentation

Removes the longest common suffix (LCS) from a vector of strings.

Description

Removes the longest common suffix (LCS) from a vector of strings.

Usage

delLCS(x)

Arguments

x

Vector of strings with common suffix

Value

Shortened vector of strings

Examples

delLCS(c("TK12345_H1"))                     ## ""
delLCS(c("TK12345_H1", "TK12345_H2"))       ## "TK12345_H1" "TK12345_H2" 
delLCS(c("TK12345_H1", "TK12!45_H1"))       ## "TK123"    "TK12!" 
 

cbielow/PTXQC documentation built on March 13, 2024, 5:08 a.m.