convertdf_enc | R Documentation |
Convert encoding of character and factor variables in a data frame
convertdf_enc(x, from = "", to = "UTF-8", sub = NA, colnames = FALSE)
x |
An object with the |
from |
a character string describing the current encoding. |
to |
a character string describing the target encoding. |
sub |
character string. If not |
colnames |
Should column names be converted as well? |
Encoding strings: all R
platforms support ""
(for the
encoding of the current
locale), "latin1"
and "UTF-8"
.
See iconv
for more information.
The original object, with character variables (and levels of (character) factor variables) converted to the specified encoding.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.