# get function from namespace instead of possibly getting
# implementation shipped with recent R versions:
bp_startsWith = getFromNamespace("startsWith", "backports")
bp_startsWith(c("aabb", "bbcc"), "bb")
Run the code above in your browser using DataLab