You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parse_double apparently interprets D as an alternative to E for scientific exponent notation. For people used to R (unless they also know Fortran), this is quite unexpected, and does not seem to be documented anywhere. Compare to the behaviour of core R:
I’d wager that this isn’t the expected or desired behaviour for most uses of ‘readr’. — Is there maybe a way to disable this? Something to the effect of “guess column types, but use a conservative parser for number formats.” Or, alternatively, maybe “guess column types, but do not consider scientific exponent notation.”
The text was updated successfully, but these errors were encountered:
klmr
changed the title
’readr guesses unexpected column types for labels containing a “D”
’readr guesses unexpected column types for values containing a “D”
Mar 15, 2023
hadley
changed the title
’readr guesses unexpected column types for values containing a “D”
readr guesses unexpected column types for values containing a “D”
Jul 31, 2023
parse_double
apparently interpretsD
as an alternative toE
for scientific exponent notation. For people used to R (unless they also know Fortran), this is quite unexpected, and does not seem to be documented anywhere. Compare to the behaviour of core R:So far, so good. Unfortunately this leads to surprises during automatic column type guessing. For instance:
I’d wager that this isn’t the expected or desired behaviour for most uses of ‘readr’. — Is there maybe a way to disable this? Something to the effect of “guess column types, but use a conservative parser for number formats.” Or, alternatively, maybe “guess column types, but do not consider scientific exponent notation.”
The text was updated successfully, but these errors were encountered: