I have a csv file with fixed headers. But some of the column values can be missing with empty commas. This is creating problems for read.csv.sql. Am I missing any parameter for this function? I expect to read null/NA - is there any workaround?
sample file content -
day,car1,car2
1,bmw,audi
2,merc,bmw
3,,audi
4,,
I get this error -
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 45 elements