[R] Accessing table elements and escape characters

Dieter Menne dieter.menne at menne-biomed.de
Wed Oct 20 10:24:43 CEST 2010



sachinthaka.abeywardana wrote:
> 
> 
> I get the error:
>  A<-read.table("P:/temp.csv",header=TRUE, sep=",");
> Error in scan(file, what, nmax, sep, dec, quote, skip, nlines,
> na.strings,  :
>   line 11018 did not have 85 elements
> 
> but when i open it in excel everything is fine.
> 
> 

Better open it with NotePad++, show all non-printing characters. Sometimes,
a ,"","" instead of ,, creeps in with Excel.

Dieter

-- 
View this message in context: http://r.789695.n4.nabble.com/Accessing-table-elements-and-escape-characters-tp3003176p3003445.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list