[R-es] Leer datos de Unicode
Carlos J. Gil Bellosta
cgb en datanalytics.com
Mie Abr 21 17:24:27 CEST 2010
Hola, ¿qué tal?
Es difícil saber cuál puede ser el problema: ignoro la configuración
de tu sistema.
?read.table dice:
encoding: encoding to be assumed for input strings. It is used to mark
character strings as known to be in Latin-1 or UTF-8: it is
not used to re-encode the input, but allows R to handle
encoded strings in their native encoding (if one of those
two). See ‘Value’.
Prueba
read.table("example_unicode.txt", sep="\t", dec=".", header=T,
encoding = "UTF-8", fill=T)
a ver si funciona.
(Nunca he sabido muy a las ciertas cómo saber cuál es el "encoding" de
un fichero de texto. Lo suelo abrir con el navegador de internet y voy
probando.)
Un saludo,
Carlos J. Gil Bellosta
http://www.datanalytics.com
Más información sobre la lista de distribución R-help-es