stringStartsWith
stringStartsWith(x, startsWith)
x | vector of character to be checked if they start with
|
---|---|
startsWith | string to be searched for at the beginning of the string(s)
in |
stringStartsWith(c("abc", "Kabeljau", "Arabella"), "ab")#> [1] TRUE FALSE FALSEstringStartsWith(c("abc", "Kabeljau", "Arabella"), "A")#> [1] FALSE FALSE TRUE