has_specials: Do strings contain special characters

View source: R/strings.R

has_specialsR Documentation

Do strings contain special characters

Description

Do strings contain special characters

Usage

has_specials(str, white = FALSE)

Arguments

str

A vector of strings to check

white

Include whitespace as special characters?

Value

A logical vector representing if the input strings contain special characters or not

Examples

library(gfutilities)
has_specials("HelloWorld")
has_specials(c("hello!", "asd", "11`"))

pbs-assess/gfutilities documentation built on Sept. 18, 2023, 7:57 a.m.