isASCII: Do Strings Consist only of ASCII Characters?

View source: R/logical.R

isASCIIR Documentation

Do Strings Consist only of ASCII Characters?

Description

The code has been "stolen" from showNonASCII

Usage

isASCII(x)

Arguments

x

vector of character

Value

vector of logical with TRUE at positions i where x[i] contains only ASCII characters

Examples

months <- c("Januar", "Februar", "M\ue4rz")

cat(months, "\n")

isASCII(months)

KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.