Skip to content
Back to formatted view

Raw Message

Message-ID: <1354530606735-4651809.post@n4.nabble.com>
Date: 2012-12-03T10:30:06Z
From: Faradj Koliev
Subject: Warning message: In scan(file, what, nmax...)
In-Reply-To: <001301cdd108$0c19e6a0$244db3e0$@edu>

Dear David, 

Than you for helping me. 

I tried with "," 

 Data1<-read.table("/Users/kama/Analysis/GDP10.csv",header=TRUE,sep=",")
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, 
: 
  line 116 did not have 2 elements

i also tried:  

Data1<-readLines("/Users/kama/Analysis/GDP10.csv",n=10)
> Data1
 [1] "Country10;Year10;GDP" "Andorra;2010;41,138"  "Andorra;2009;44,591" 
 [4] "Andorra;2008;49,981"  "Andorra;2007;48,431"  "Andorra;2006;43,541" 
 [7] "Andorra;2005;40,821"  "Andorra;2004;38,381"  "Andorra;2003;32,55"  
[10] "Andorra;2002;25,532" 









--
View this message in context: http://r.789695.n4.nabble.com/Warning-message-In-scan-file-what-nmax-tp4651689p4651809.html
Sent from the R help mailing list archive at Nabble.com.