-
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
col_number() drops negatives #308
Comments
Also fixed reading the coordinates in, see tidyverse/readr#308
Specifying @hadley: Thanks for detailed documentation which I did not read until I noticed
|
Had the same problem, and was not sure what is the difference between n and d! |
This introduces a new problem; d converts a number with commas to NA, but at least it warns the user. To confirm, please try the code below using the data on the attached spreadsheet, importing it using three different techniques (base R, readr without explicitly decaring coltypes, and finally, using your solution)
|
This issue actually illustrates two problems:
|
col_number / parse_number doesn't work with negative currencies. (I'm using the dev version.) Thanks.
|
This fails: ..but this works: |
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/ |
If I don't request specific column types, then
read_csv
treats negative numbers appropriately.If I specify that the column is numeric, then
read_csv
drops the negative signs.The text was updated successfully, but these errors were encountered: