-
Notifications
You must be signed in to change notification settings - Fork 286
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
Implement comment skipping for read_fwf() #334
Comments
I was about to say that the new-ish argument |
Something like |
Two suggestions for interested parties (not just Hadley!)
|
read_fwf()
read_fwf()
@holstius that's unfortunately rather difficult to do without losing the performance benefits of the way that readr is structured. |
I also modified the fixed width example file to be a little more substantial that the previous examples. Fixes tidyverse#334
I have fixed width text files with headers, the size of which (the amount of lines to skip) varies greatly from file to file. I could first read a file and figure out the amount of lines to skip before reloading it with the skip value set, but it feels clumsy and it would be nice to be able to do that in one go. Headers/Comments being often identifiable by the first few characters (in my case, the line starts by the letter H).
It would also be nice to have the possibility to save those skipped lines (the whole header) in a variable or a file at the same time as one may need to parse it further to collect some information from it.
The text was updated successfully, but these errors were encountered: