I am attempting to read a very large .csv file into R
OrigTotalPumping <- read.table("/Users/Larry/Desktop/OrigTotalPumping/MasterOrigFt3.csv",
header=F, sep=",")
I get an error back
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 19437 did not have 7 elements
So I tried to simply skip that line, but the same error occurs for multiple lines in the file, and the file is far too large to open and manually fix. For example
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
line 2 did not have 7 elements
and
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
line 19439 did not have 7 elements
How do I set it so it can read in this file despite this problem?