-
Notifications
You must be signed in to change notification settings - Fork 978
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's nrow argument could accept -ve values to skip last 'n' rows #1643
Comments
Note that this would break the current default of Other than that, it seems like it shouldn't be too hard to implement, maybe one or two extra lines in this branch of https://github.com/Rdatatable/data.table/blob/master/src/fread.c#L956-L1018 |
Yeah, I could use this. I'm currently reading in csvs that often have an incomplete last line (not enough fields as inferred from commas), which reliably causes fread to crash R. It would be nice to set |
I would prefer the way mentioned by Arun, as it would be consistent to linux |
On a related note, it would be nice if we could pass a list of indicies (also as part of the 'skip' parameter) to explicitly read in the rows you want, like we can do in python's Pandas. If the list of indicies is random, it is a nice way to create a random sample of a data frame which is too large to be read onto a local machine, for instance. |
@lanceculnane see also #583 |
could be useful for this post: http://stackoverflow.com/q/36558437/559784
The text was updated successfully, but these errors were encountered: