Skip to content
Prev 148411 / 398500 Next

Error reading a table

Hi,

I get the following error when I try to read in a CSV file:
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings,  :
  line 17 did not have 5 elements

Some of the rows have more columns  than others. Also when I try the read.csv
command, the very last column, which only has one cell with a value, doesn't
get read, so that last cell is lost.

How can I fix this?

Thanks,
-Nina