A function for detecting a pattern at the end of a string
sf_ends(subject, pattern, ...)A logical vector true if there is a match, false if no match, NA is the subject was NA
endsWith, sf_starts
if(getRversion() >= "3.5.0") {
x <- c("alpha", "beta", "gamma", "delta", "epsilon")
sf_ends(x, "a")
}
#> [1] TRUE TRUE TRUE TRUE FALSE