| sf_starts {stringfish} | R Documentation |
A function for detecting a pattern at the start of a string
sf_starts(subject, pattern, ...)
subject |
A character vector |
pattern |
A string to look for at the start |
... |
Parameters passed to sf_grepl |
A logical vector true if there is a match, false if no match, NA is the subject was NA
startsWith, sf_ends
x <- c("alpha", "beta", "gamma", "delta", "epsilon")
sf_starts(x, "a")