Skip to contents

stringEndsWith

Usage

stringEndsWith(x, endsWith)

Arguments

x

vector of character to be checked if they end with endsWith

endsWith

string to be searched for at the end of the string(s) in x

Examples

stringEndsWith(c("abc", "Kabeljau", "Arabella"), "a")
#> [1] FALSE FALSE  TRUE
stringEndsWith(c("abc", "Kabeljau", "Arabella"), "jau")
#> [1] FALSE  TRUE FALSE