I\'m trying to read a huge file with fread, but i guess something is messed with the layout of the file.
If i try to read the file with
data = fread(
Add fill = TRUE
in the syntax
What's happening: The rows in the data have unequal length. With this syntax, blank fields are implicitly filled.
I'm not 100% sure what the error is in your data, here, but try running the code with
data = fread(input = "../data.txt", sep = "\t", fill = TRUE)
in the fread options. I had a similar error, and it seemed that fread was having trouble identifying my column separation. Setting fill to true allows fread to fill in any missing data- at least then you can check the resulting data frame and find out where the weirdness is.