R/str-utils.R
str-starts-ends.Rd
Detect patterns at the beginning or end of strings
str_starts(string, pattern, negate = FALSE) str_ends(string, pattern, negate = FALSE)
Input string
Pattern to match
If TRUE, return non-matching elements
TRUE
a logical vector
Other str-utils: str_detect(), str_extract(), str_wrap()
str_detect()
str_extract()
str_wrap()
Guangchuang Yu