extract_before | R Documentation |
If a string has more than one match, this will only return the first one.
extract_before(full_string, before_string, trim_spaces = TRUE)
full_string |
The full character string to extract from. |
before_string |
A pattern specifying the string should be extracted before this. |
trim_spaces |
logical T/F, if there are any spaces within the extracted string, they will be removed. Default is TRUE. |
A string
extract_before("What does the fox say?", before_string = "say")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.