View source: R/btools_strings.r
str_extract_before_first | R Documentation |
Return portion of a string before first occurrence of a pattern
str_extract_before_first(s, first)
s |
A string. |
first |
Pattern to look for. |
Substring of s
before first occurrence of first
.
str_extract_before_first("abcde#yzy", "#") str_extract_before_first("abcde#yzy", "y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.