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
clarify docs about NA, NaN, and numeric #1
base: trunk
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
once you've settled on a version you like, the best thing to do is to create a patch against the current SVN version and post it on https://bugs.r-project.org/ (I'm happy to do this if you like)
@bbolker thanks for the review and fixes! I'll try submitting a patch |
@bbolker ah, I see I would need to apply for an account to be able to submit. I assume you already have an account, so please go ahead and submit it |
Will work on this when I get a chance. |
Thanks! |
Originally posted to Mastodon my learning experience about NaN and NA
TIL
doc for
NaN
andis.nan()
says:‘NaN’ means ‘Not a Number’
andNA, ‘_Not Available_’ which is not a number as well...
->doc for
is.numeric()
doesn't mention NA nor NaN, but says‘is.numeric’ is a more general test of an object being interpretable as numbers.
doc for
is.na()
saysindicates which elements are missing.
I feel like the documentation could be a bit more clear on these, and here is a proposal.