[R] error with scan

From: Jean-Pierre Gattuso <gattuso2_at_obs-vlfr.fr>
Date: Wed 27 Jul 2005 - 04:52:23 EST


Hi:

I am trying to read a large (500000+ lines) with scan() as read.table is unable to read it.

I get a strange error (below) which says that 'a real' was expected and '5' was read. Can someone help?

Thanks,
jp

> type=list(a=0,b=0,c=0,d=0,e=0,f="",g=0,h=0,i=0)
> tmp2 <- scan(file="tmp2.txt", what=type, sep=",", quote="\"",
dec=".", skip=1, nmax=541502)
Erreur dans scan(file = "tmp2.txt", what = type, sep = ",", quote = "\"", :

     scan() attendait 'a real' et a rešu '5'



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 27 04:56:11 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:34:01 EST