-
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
read_csv() throws warning for NaN, INF, -INF when col_type set to number #1225
Comments
Yes this is expected, |
Thanks! Does this mean that a column containing a mix of human generated numbers |
yeah, I would maybe suggest you import these columns as characters and then use a custom function to parse them after reading. |
Thanks, I will switch between |
Consider a csv file where a column contains the literal values
NaN
,INF
or-INF
(case ignored).col_type
is undefined, thenread_csv()
will read values correctly and set column to doublecol_type = n
, thenread_csv()
will throw a warning, set values toNA
and set column to doublecol_type = d
, thenread_csv()
will read the values correctly and set column to doubleIs this by design?
Reprex:
The text was updated successfully, but these errors were encountered: