Skip to content
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

Null integers read in as zero #135

Closed
alastairmatheson opened this issue Jun 13, 2019 · 1 comment
Closed

Null integers read in as zero #135

alastairmatheson opened this issue Jun 13, 2019 · 1 comment

Comments

@alastairmatheson
Copy link

When I read in a series of csv files, null cells are being read in as zero if I specify the col type as integer. Specifying it as double leads to a correct NA. If I don't specify a col type, vroom reads it in as a double and also correctly uses NA.

I checked readr::read_csv and the same file yields NA for both integer and double col types. Similarly, data.table::fread produces an integer type and NA value.

@jimhester
Copy link
Collaborator

Thanks for opening the issue, it should now be fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants