toUTF8 {descr} | R Documentation |
Converts the encoding of some attributes of an object to UTF-8
toUTF8(x, from = "WINDOWS-1252")
x |
A R object, usually a variable of a data frame or a data frame. |
from |
A string indicating the original encoding. Common values are
"LATIN1" and "WINDOWS-1252" . Type iconvlist() for the
complete list of available encodings. |
The function converts the attribute label
of x
from the specified
encoding into UTF-8. If x
is a factor, the levels are converted as well.
If x
is a data.frame, the function makes the conversions in all of its
variables.
The object with its label and levels converted.
Jakson A. Aquino, jalvesaq@gmail.com.