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