You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: