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

Carlos Morales carlosmoralesdiego at yahoo.es
Fri Oct 3 16:51:35 CEST 2008


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

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






More information about the R-help mailing list