every() and NAs #174
Closed
every() and NAs #174
Labels
Comments
hmm yes, we should probably return |
library(purrr)
every(NA, ~ .x > 0)
#> [1] FALSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm very impressed by purrr but from my point of view it's strange result:
every(NA, function(x) x > 0)
[1] FALSE
Doesn't it break R rules about NA?
Maybe it's better to return NA like all()?
all(c(NA) > 0)
[1] NA
The text was updated successfully, but these errors were encountered: