is_punct: Is a Character Punctuation?

View source: R/classes.R

is_punctR Documentation

Is a Character Punctuation?

Description

Compares against the regex group ⁠[[:punct:]]⁠.

Usage

is_punct(x)

Arguments

x

A vector of characters.

Value

A boolean vector indicating whether each element of x is considered as punctuation.

Examples

is_punct(chars("I can haz?"))

Filter(Negate(is_punct), chars("abc,123;$*%?"))

charcuterie documentation built on April 3, 2025, 8:53 p.m.