A function for detecting a pattern at the end of a string
Examples
if(getRversion() >= "3.5.0") {
x <- c("alpha", "beta", "gamma", "delta", "epsilon")
sf_ends(x, "a")
}
#> [1] TRUE TRUE TRUE TRUE FALSE
A function for detecting a pattern at the end of a string
if(getRversion() >= "3.5.0") {
x <- c("alpha", "beta", "gamma", "delta", "epsilon")
sf_ends(x, "a")
}
#> [1] TRUE TRUE TRUE TRUE FALSE