extract: Extract the first pattern match

View source: R/primitives.R

extractR Documentation

Extract the first pattern match

Description

Extract the first pattern match

Usage

extract(x, pattern, ...)

Arguments

x

An atomic vector.

pattern

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

...

Additional arguments (unused, or passed through depending on the function).

Value

A character vector of matches.


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