Find a pattern in an element of a character vector to identify where to start trimming & trim
| 1 | trim_pattern(string, pattern, end = length(string))
 | 
| string | the character vector in which to look for pattern | 
| pattern | the pattern to find in the strings | 
| end | latter index for subset to be removed | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.