strCommonUnique | R Documentation |
Function takes a character string as input and find the common and unique elements. Assumes that the common element is at start of string.
strCommonUnique(string)
string |
Character vector |
list of common and unique strings
test <- c("Q_1", "Q_2", "Q_3")
strCommonUnique(test)$common
strCommonUnique(test)$unique
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.