Skip to content

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

Closed

Description

@arunsrinivasan

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.

Activity

  1. kforner commented on Nov 10, 2014

    @kforner

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

  2. arunsrinivasan commented on Mar 16, 2015

    @arunsrinivasan
    MemberAuthor

    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.

  3. added this to the v1.9.6 milestone on Mar 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions