I'm trying to use the "chunked" package to read a big .csv
file with read_csv_chunkwise
but there seems to be a problem in my data where the number of columns are more than the number of elements in the first, second or n-th row. This creates an error:
>chunked::read_csv_chunkwise(file1, sep = ",", dec = ".", chunk_size = 300000, header = T)
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, : line 1 did not have 13 elements
Can this be fixed somehow ? I heard that other packages like "data.table" have an argument fill = TRUE
that fixes this problem