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 row.names option #1818

Closed
zji90 opened this issue Aug 17, 2016 · 0 comments
Closed

fread row.names option #1818

zji90 opened this issue Aug 17, 2016 · 0 comments

Comments

@zji90
Copy link

zji90 commented Aug 17, 2016

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.

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

No branches or pull requests

3 participants