View source: R/convertdf_enc.R
convertdf_enc | R Documentation |
Convert encoding of character and factor variables in a dataframe
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.
Other Data_handling_utilities:
csv_to_sqlite()
,
df_factors_to_char()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.