str_to_ascii | R Documentation |
str_to_ascii()
converts a string to ASCII characters only. When
trans = TRUE
, non-ASCII characters are transliterated; otherwise, non-ASCII
characters are replaced with the ASCII SUBSTITUTE CHARACTER (0x1A
).
str_to_ascii(string, trans = TRUE)
string |
A character vector |
trans |
Should non-ASCII characters be transliterated? |
An ASCII-encoded character vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.