This function converts input strings to ASCII, i.e., to character strings consisting of bytes not greater than 127.
a character vector to be converted
All code points greater than 127 are replaced with the ASCII SUBSTITUTE
R encoding declarations are always used to determine
which encoding is assumed for each input, see
If ill-formed byte sequences are found in UTF-8 byte
streams, a warning is generated.
bytes-marked string is assumed to be in an 8-bit encoding
extending the ASCII map (a common assumption in R itself).
Note that the SUBSTITUTE CHARACTER (
\x1a == \032) may be interpreted
as the ASCII missing value for single characters.
Returns a character vector.
Marek Gagolewski and other contributors
The official online manual of stringi at https://stringi.gagolewski.com/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.