Skip to contents

stringStartsWith

Usage

stringStartsWith(x, startsWith)

Arguments

x

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

Examples

stringStartsWith(c("abc", "Kabeljau", "Arabella"), "ab")
#> [1]  TRUE FALSE FALSE
stringStartsWith(c("abc", "Kabeljau", "Arabella"), "A")
#> [1] FALSE FALSE  TRUE