-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
isOrdered results differ for NA_integer_ and NA_real_ #221
Comments
Places where this behavior may affect user code: Subsetting in The other calls in the
|
I think the reason that all the integer cases are For doubles R is using IEEE NaN values: According to the standard, any ordering comparison with NaN returns false: This explains the double cases:
Therefore you get results like this:
|
Note that zoo orders the index using it's |
The
isOrdered()
function returns different results depending on whether the input is integer or double and includes aNA
:The text was updated successfully, but these errors were encountered: