startswith: Test whether strings start with a pattern

View source: R/primitives.R

startswithR Documentation

Test whether strings start with a pattern

Description

Test whether strings start with a pattern

Usage

startswith(x, pattern, fixed = FALSE)

Arguments

x

An atomic vector.

pattern

A regular expression (or fixed string when fixed = TRUE).

fixed

Use fixed (non-regex) matching instead of regular expressions.

Value

A logical vector.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.