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