str_conv | R Documentation |
This is a convenient way to override the current encoding of a string.
str_conv(string, encoding)
string |
Input vector. Either a character vector, or something coercible to one. |
encoding |
Name of encoding. See |
# Example from encoding?stringi::stringi
x <- rawToChar(as.raw(177))
x
str_conv(x, "ISO-8859-2") # Polish "a with ogonek"
str_conv(x, "ISO-8859-1") # Plus-minus
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.