endsWith: Backport of endsWith for R < 3.3.0

View source: R/endsWith.R

endsWithR Documentation

Backport of endsWith for R < 3.3.0

Description

See the original description in base::endsWith.

Usage

endsWith(x, suffix)

Examples

# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_endsWith = getFromNamespace("endsWith", "backports")

bp_endsWith(c("aabb", "bbcc"), "bb")

backports documentation built on June 24, 2024, 5:24 p.m.