Re: [R] Reading text files from other languages

2012-03-10 Thread Julio Sergio
Joshua Wiley gmail.com> writes: > > > Thanks Joshua! Best regards, --Sergio. __ R-help@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 provid

Re: [R] Reading text files from other languages

2012-03-10 Thread Joshua Wiley
Hi Julio, If you look at the documentation for ?read.fwf you will see '...' further arguments to be passed to 'read.table' and if you look at ?read.table you will see there is an argument called, 'encoding', so, yes. Just specify the encoding. Cheers, Josh On Sat, Mar 10, 2012 at 3:41 PM

[R] Reading text files from other languages

2012-03-10 Thread Julio Sergio
I'm trying to read a data file that contains characters from the Spanish language: > Station <- read.fwf("LosDatos.txt",widths=c(7,7,25,8,8,5),header=FALSE, + skip=3,n=separ[1]-4) Then the R interpreter issues the following message: Error en substring(x, first, last) :