-
Notifications
You must be signed in to change notification settings - Fork 31
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
Non-numbers #5
Comments
Very thorough post, and good notes here too! I couldn't help to point out that you CAN take the square root of sqrt(0i-1)
#> [1] 0+1i |
A good read! I'll definitely link to this in a future version. I fully admit ignorance regarding these non-numbers, so it's no wonder that I never discovered these issues myself. I know that Speaking of warnings, I will defend R by saying that many of these examples throw warnings that you've not shown. However, a lot of them don't, so it's not like R is totally innocent. There's also a handful that I kind of explain. For example, sum(NA) # NA
sum(NA, na.rm=TRUE) # 0 # Horrible is bad, but I can see their reasoning. Sum of |
I've linked to this page in the latest version. I'll keep the issue open just in case it attracts similar interesting comments. |
I sorta understand the point of view about
But suppose x is a vector of monthly sales per seller. If a seller is not on the payroll for a year, you probably want the yearly total to be NA, not zero, so I've had to write code like:
|
I think we agree. I get why they thought it made sense, but whether or not it was a good idea is a totally different question that I have no answer for. |
Your article is extremely thorough. You touched on a few of these points below, but maybe there's something interesting here below. This is not really an "issue", more of a comment.
The text was updated successfully, but these errors were encountered: