is.ascii: Identify non-ASCII elements in a character vector.

Description Usage Arguments Examples

View source: R/is.ascii.R

Description

Given a character vector, returns a logical vector of the same length that identifies which elements contain non-ASCII (>127) characters.

Usage

1

Arguments

str

A character vector.

Examples

1
2
print(str <- c('cat', 'caf\u00e9'))
is.ascii(str)

stevetnz/stevesRfunctions documentation built on May 28, 2019, 8:21 a.m.