Skip to contents

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")
#> Januar Februar März 

isASCII(months)
#> [1]  TRUE  TRUE FALSE