startsWith {backports} | R Documentation |
See the original description in base::startsWith
.
startsWith(x, prefix)
# 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")