str_starts | R Documentation |
Detect the presence or absence of a pattern at the beginning or end of a string or string vector.
str_starts(string, pattern, negate = FALSE)
str_ends(string, pattern, negate = FALSE)
string |
input string |
pattern |
pattern with which the string starts or ends |
negate |
if TRUE, return non-matching elements |
a logical vector
Guangchuang Yu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.