[R] Problem with read.table in Windows and Linux

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Oct 3 16:58:42 CEST 2008



Carlos Morales wrote:
> Hello everyone,
> 
> I'm trying to open the same file under Linux and Windows. Under Windows everything is ok but when I try to do it under Linux I have a mistake and I don't know why. This is the mistake:
> 
> Error in make.names(col.names,unique=TRUE):
> string multibyte 1 invalid

Your system guesses a different encoding than the file is in fact, I 
guess...

Uwe Ligges


> 
> why?
> 
> I write this when I want to do it under Windows: zz.info<-read.table(file("C:/Documents and Settings/Administrador/Desktop/carlos/aCGH/aCGH/examples/Anal_sin_norm_1Mb86_Segmentos3.txt","r+"),header=TRUE,sep="\t",dec=".")
>  
> and under Linux:
>  
> zz.info<-read.table(file("/home/carlos/Desktop/Anal_sin_norm_1Mb86_Segmentos3.txt","r+"),header=TRUE,sep="\t",dec=".")
>  
> Why do I have problems under Linux?. If you need the text file tell me it.
>  
>  
> Thanks so much for your help
>  
> Carlos
> 
> 
> 
> 
> ______________________________________________
> 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.



More information about the R-help mailing list