Learn R Programming

backports (version 1.5.0)

endsWith: Backport of endsWith for R < 3.3.0

Description

See the original description in base::endsWith.

Usage

endsWith(x, suffix)

Arguments

Examples

Run this code
# 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")

Run the code above in your browser using DataLab