Re: [R] encoding accentsand tildes in R Macosx

2008-08-11 Thread Prof Brian Ripley
On Mon, 11 Aug 2008, Kenneth Roy Cabrera Torres wrote: 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. Well, R has an iconv() command even on Mac OS X, and

Re: [R] encoding accentsand tildes in R Macosx

2008-08-10 Thread Kenneth Roy Cabrera Torres
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

[R] encoding accentsand tildes in R Macosx

2008-08-10 Thread Carlos Cuartas
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,str