endswith: Test whether strings end with a pattern

View source: R/primitives.R

endswithR Documentation

Test whether strings end with a pattern

Description

Test whether strings end with a pattern

Usage

endswith(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.