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

Comments

Projects
None yet
3 participants
@arunsrinivasan
Member

arunsrinivasan commented Jun 8, 2014

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

This comment has been minimized.

Show comment
Hide comment
@kforner

kforner Nov 10, 2014

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

kforner commented Nov 10, 2014

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

@arunsrinivasan

This comment has been minimized.

Show comment
Hide comment
@arunsrinivasan

arunsrinivasan Mar 16, 2015

Member

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.

Member

arunsrinivasan commented Mar 16, 2015

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