delLCS | R Documentation |
Removes the longest common suffix (LCS) from a vector of strings.
delLCS(x)
x |
Vector of strings with common suffix |
Shortened vector of strings
delLCS(c("TK12345_H1")) ## ""
delLCS(c("TK12345_H1", "TK12345_H2")) ## "TK12345_H1" "TK12345_H2"
delLCS(c("TK12345_H1", "TK12!45_H1")) ## "TK123" "TK12!"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.