View source: R/extract_differences_between_characters.R
extract_differences_between_characters | R Documentation |
For a vector of character strings, identify elements between shared leading and/or trailing substrings, e.g. for a vector such as c("XXX01YYY",XXX02YYY") extract the numbers.
extract_differences_between_characters(strings)
strings |
vector of character strings for elements to be extracted from. |
vector of strings similar to the input vector but without shared leading and trailing characters.
Eike Luedeling
extract_differences_between_characters(c("Temp_01","Temp_02","Temp_03"))
extract_differences_between_characters(c("Temp_01_Tmin","Temp_02_Tmin","Temp_03_Tmin"))
extract_differences_between_characters(c("a","b"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.