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

[R-Forge #5572] fread: Column headers with empty strings are skipped in 1.9.2 #483

Closed
arunsrinivasan opened this issue Jun 8, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@arunsrinivasan
Copy link
Member

Submitted by: Roby Joehanes; Assigned to: Nobody; R-Forge link

Suppose the first line of a 5-column flat CSV file is as follows:

,Col1,Col2,Col3,Col4

This line is skipped in v1.9.2, and so the data file has no column header (only V1,V2,...,V5). This has not been a problem in v1.8.10.

@kforner
Copy link

kforner commented Nov 10, 2014

Got into that also. Used to work. now silently ignoring the headers even if header = TRUE.

@arunsrinivasan
Copy link
Member Author

In v1.9.5, I get this:

fread(",Col1,Col2,Col3,Col4\na,b,c,d,e\n1,2,3,4,5", verbose=FALSE)
#    V1 Col1 Col2 Col3 Col4
# 1:  a    b    c    d    e
# 2:  1    2    3    4    5

Could you please verify this and write back as well, @kforner ? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants