fixEncoding | R Documentation |
Simple function to replace typical encoding problems when importing text with accents or special characters which is not in UTF-8 (i.e. latin1 encoding).
fixEncoding(x, encoding = NULL)
x |
a vector with characters to be replaced |
encoding |
a character containing the encoding used to mark the output vector |
The function makes no encoding guessing. It just directly replaces common enconding problems from text in latin1 to UTF-8 characters. So, make sure that this replacement makes sure to your data.
the input vector with the encoding problems replaced
Renato A. F. de Lima
nomes <- c("José", "Gonçalves", "Müller", "Londoño") ## Not run: fixEncoding(nomes) fixEncoding(nomes, encoding = "UTF-8") fixEncoding(nomes, encoding = "latin1") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.