Skip to content

fread row.names option #1818

Description

@zji90

When reading in a text file generated by write.table function in R with both row names and column names included, fread reports the following warning because the header row has one less element than the remaining data rows. As a result the header will just be omitted. fill=TRUE doesn't work since the fill will be the last element and all positions are incorrect.
The warning reads: 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
I am wondering whether a parameter similar to row.names in data.frame function can be added so that fread knows the first column is the row names and will expect the first row have one less element.

Activity

  1. added this to the milestone on Jan 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions