I have a CSV file that has rows with a variable number of columns (and no column headers). E.g. the file could begin with some rows with 23 columns and then some rows with 83 columns etc. Now when read_csv() starts reading the file it guesses the number of columns after the first few rows are read (I think) so if the data rows in the beginning are shorter than at the end I get the exception below. Is there a way to pass a parameter to the function to set the number of columns to a certain max value? Or is there a better way to do this?
Thanks.
CParserError: Error tokenizing data. C error: Expected 23 fields in line 150, saw 83