is_punct {charcuterie}R 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;$*%?"))

[Package charcuterie version 0.0.6 Index]