R/str-utils.R
str-starts-ends.Rd
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)
input string
pattern with which the string starts or ends
if TRUE, return non-matching elements
a logical vector
Guangchuang Yu