# 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