-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fread fails with uneven number of columns when max columns in final row (with fill=TRUE and col.names set) #2691
Comments
fread
fails with uneven number of columns when max collumns in final row (with fill=TRUE and col.names set)
Both pieces of code produce, up to row order, identical output for me on current CRAN version (1.14.0). |
Hi Team, I have the same problem. I have multiple .csv files under a directory. I am reading that under a list iteration. The below is the code and warning. I have used fill=True, but not working anything it seems. Can someone please just guide me.. Code: Log: Please help me if there's any work around. |
#5119 added the examples as test cases. Both work now with |
This may be related to issue #1812, but as that one does not have a reproducible example to confirm, I thought it would be more appropriate to open a new issue.
When a file with an uneven number of columns has the max number of columns in the final row
fread
fails with the following error:This occurs even with
fill = TRUE
and the maximum number of column names passed tocol.names
.Here is a small example
However, when the row with the maximum number of fields is moved to the middle of the file (in this example row 6),
fread
behaves as expected.I included this caveat in my answer to this Stackoverflow question
laptop session info
Also tested on this machine, same results
The text was updated successfully, but these errors were encountered: