Obviously row 11 is incomplete.
It may contain nothing more than a space or an EOL.
Using the "fill=TRUE" argument to 'scan' or 'read.table' is your friend
here.
--
View this message in context:
http://r.789695.n4.nabble.com/Error-in-scan-tp4678976p4678982.html
Sent from the R help mailing li
It is clear that you have letters in the data you are trying to
process; that is the cause of the erro. What was the 'scan' statement
you were using? Were you expecting all numerics in the string? The
error message is consistent with your input.
On Wed, Feb 2, 2011 at 2:07 AM, gked wrote:
>
>
I know it's a common error and there is a lot of help available but still
can't resolve the issue:
all i am trying to do is to read a csv file from my folder and this is what
i get:
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,
:
scan() expected 'a real', got
'1,m
__
R-help@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.
4 matches
Mail list logo