You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Activity
lionel- commentedon Feb 7, 2016
hmm yes, we should probably return
NAif one element of.xisNA. And withsome(), we should do the same except if one element isTRUE.hadley commentedon Mar 3, 2017
Check for NA in every/some