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

parse_guess doesn't ignore NA values, thus rendering the na parameter less useful. #1041

Closed
jmarshallnz opened this issue Oct 21, 2019 · 2 comments

Comments

@jmarshallnz
Copy link

I'd expect that parse_guess would first remove NA strings prior to guessing the type. Otherwise anything with an NA encoded as a string (rather than _NA_character) would not be guessed correctly, as guess_parser does not filter NA strings.


> parse_guess(c("123", NA))
[1] 123  NA
> parse_guess(c("123", "NA"), na="NA")
[1] "123" NA  

Notice that it is converting the "NA" to NA, but not prior to parsing.

@jmarshallnz
Copy link
Author

Nice! I was about to dive into the code today but you beat me to it. Thanks very much! :)

@lock
Copy link

lock bot commented Apr 18, 2020

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/

@lock lock bot locked and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant