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
delim = "" should generate clear error #557
Comments
Use ´readr::read_table()` for whitespace separated columns. |
@lukas-rokka Thanks, that's great. Unfortunately it looks like (of course one could use |
proposed fix in PR #563 |
hadley
changed the title
unexpected behavior of delim in
delim = "" should generate clear error
Dec 22, 2016
read_delim
jimhester
added a commit
that referenced
this issue
Feb 3, 2017
jimhester
added a commit
that referenced
this issue
Feb 15, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Consider this minimal example with a classic CO2 dataset:
base R version works fine:
readr function not so much
The problem seems to be in the file being whitespace delimited,
read.delim
seems to interpretsep=""
somewhat surprisingly (but conveniently in this case) as "any number of spaces".read_delim
does not.I haven't figured out a way to parse this file with
readr
functions, though I could be missing something obvious. It seems like an option fordelim_whitespace
(as inpandas
), or perhaps better, the ability to use regex expressions for delimiters would help?(A bit unrelated, but it might also be convenient for the comment symbol to permit regex patterns?)
The text was updated successfully, but these errors were encountered: