Skip to content
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 incorrectly skips header on this file #1625

Closed
mattdowle opened this issue Apr 5, 2016 · 1 comment
Closed

fread incorrectly skips header on this file #1625

mattdowle opened this issue Apr 5, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@mattdowle
Copy link
Member

@mattdowle mattdowle commented Apr 5, 2016

fread("http://www.nzta.govt.nz/resources/crash-analysis-system-data/docs/crash-data-2014.csv") :
Starting data input on line 2 and discarding line 1 because it has too few or too many items to be column names or data: "TLA NAME","CRASH ROAD","CRASH DIST","CRASH DIRN","INTSN","SIDE ROAD","CRASH ID","CRASH DATE","CRASH DOW","CRASH TIME","MVMT","VEHICLES","CAUSES","OBJECTS STRUCK","ROAD CURVE","ROAD WET","LIGHT","WTHRa","JUNC TYPE","TRAF CTRL","ROAD MARK","SPD LIM","CRASH FATAL CNT","CRASH SEV CNT","CRASH MIN CNT","PERS AGE1","PERS AGE2","EASTING","NORTHING"

From : http://stackoverflow.com/questions/28100868/download-file-inserts-an-extra-cr-after-each-crlf

@mattdowle mattdowle added this to the v1.9.8 milestone Apr 5, 2016
@arunsrinivasan
Copy link
Member

@arunsrinivasan arunsrinivasan commented Apr 6, 2016

Try it again with fill = TRUE.

Perhaps that should be added to the warning message. Or we should load length(header) number of columns by default, and provide the warning that informs about fill=TRUE.

Are you going to work on this? If not, I'd prefer it to be moved to v2.0.0.

@jangorecki jangorecki added the fread label Apr 12, 2016
@arunsrinivasan arunsrinivasan modified the milestones: v2.0.0, v1.9.8 Jul 21, 2016
@st-pasha st-pasha added the bug label Jul 6, 2017
@st-pasha st-pasha mentioned this issue Jul 6, 2017
60 of 109 tasks complete
@mattdowle mattdowle modified the milestones: Candidate, v1.10.6 Jan 21, 2018
mattdowle added a commit that referenced this issue Jan 21, 2018
mattdowle added a commit that referenced this issue Jan 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.