sf_ends: sf_ends

View source: R/sf_functions.r

sf_endsR Documentation

sf_ends

Description

A function for detecting a pattern at the end of a string

Usage

sf_ends(subject, pattern, ...)

Arguments

subject

A character vector

pattern

A string to look for at the start

...

Parameters passed to sf_grepl

Value

A logical vector true if there is a match, false if no match, NA is the subject was NA

See Also

endsWith, sf_starts

Examples

if(getRversion() >= "3.5.0") {
x <- c("alpha", "beta", "gamma", "delta", "epsilon")
sf_ends(x, "a")
}

stringfish documentation built on May 31, 2023, 5:19 p.m.