startsWith: Backport of startsWith for R < 3.3.0

Description Usage Examples

View source: R/startsWith.R

Description

See the original description in base::startsWith.

Usage

1
startsWith(x, prefix)

Examples

1
2
3
4
5
# 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")

backports documentation built on Dec. 13, 2021, 5:08 p.m.