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
I know this issue has been raised before, for example, #976. When users call read_csv to import data without specifying the variable type of each column, read_csv does the smart trick and automatically identifies each column's variable type. All of these are wonderful, the only caveat is that numeric variables larger than 2^53-1 lost their precision.
As one may observe, the last digits of the output are different from the last digits of the original data.
A cautious coder will know how many digits the numeric variable requires and make a judgment to specify col_types when reading the file. But we are often not careful. And it can potentially cause some serious problems down the road.
Would it be possible to add a warning message during read_csv import?
The text was updated successfully, but these errors were encountered:
I know this issue has been raised before, for example, #976. When users call
read_csv
to import data without specifying the variable type of each column,read_csv
does the smart trick and automatically identifies each column's variable type. All of these are wonderful, the only caveat is that numeric variables larger than 2^53-1 lost their precision.As one may observe, the last digits of the output are different from the last digits of the original data.
A cautious coder will know how many digits the numeric variable requires and make a judgment to specify col_types when reading the file. But we are often not careful. And it can potentially cause some serious problems down the road.
Would it be possible to add a warning message during
read_csv
import?The text was updated successfully, but these errors were encountered: