Debian Codegraph @

man/is_ascii.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/encoding.R
3 \name{is_ascii}
4 \alias{is_ascii}
5 \title{Check if a character vector consists of entirely ASCII characters}
6 \usage{
7 is_ascii(x)
8 }
9 \arguments{
10 \item{x}{A character vector.}
11 }
12 \value{
13 A logical vector indicating whether each element of the character
14 vector is ASCII.
15 }
16 \description{
17 Converts the encoding of a character vector to \code{'ascii'}, and check if
18 the result is \code{NA}.
19 }
20 \examples{
21 library(xfun)
22 is_ascii(letters) # yes
23 is_ascii(intToUtf8(8212)) # no
24 }