startsWith: Backport of startsWith for R < 3.3.0

View source: R/startsWith.R

startsWithR Documentation

Backport of startsWith for R < 3.3.0

Description

See the original description in base::startsWith.

Usage

startsWith(x, prefix)

Examples

# 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 June 24, 2024, 5:24 p.m.