Hello, In R under Mac OS X 10.5.4 I've had problems when I've tried to read a data.frame with characters including tildes and accents. For instance Floreña is changed to Flore\x96a and Ranchería is changed to Rancher\x92a In the code: section<-read.table('Sectiondic.txt',sep='\t',header=T,stringsAsFactors=F,encoding=" ") I've changed the "encoding" argument but I have not could find the solution. Any suggestion? Thanks a lot Carlos Cuartas [[alternative HTML version deleted]]
Kenneth Roy Cabrera Torres
2008-Aug-11 05:47 UTC
[R] encoding accentsand tildes in R Macosx
Hi Carlos: I think you got a encoding problem. Maybe is esier to convert it. I don't know how to convert in Mac OS, but in linux you can use "iconv" that converts many codes to other. Is the original file form a windos$ OS system? Maybe the encoding is in windows-1256 and you need to convert to a compatible MAC enconding. Hope this helps. Kennneth El dom, 10-08-2008 a las 22:14 -0700, Carlos Cuartas escribi?:> Hello, > In R under Mac OS X 10.5.4 I've had problems when I've tried to read a data.frame with characters including tildes and accents. > For instance Florea is changed to Flore\x96a and Ranchera is changed to Rancher\x92a > In the code: section<-read.table('Sectiondic.txt',sep='\t',header=T,stringsAsFactors=F,encoding=" ") > I've changed the "encoding" argument but I have not could find the solution. > Any suggestion? > > Thanks a lot > > Carlos Cuartas > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.