is_ascii | R Documentation |
Converts the encoding of a character vector to 'ascii'
, and check if
the result is NA
.
is_ascii(x)
x |
A character vector. |
A logical vector indicating whether each element of the character vector is ASCII.
library(xfun)
is_ascii(letters) # yes
is_ascii(intToUtf8(8212)) # no
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.