tidyverse / funs

Collection of low-level functions for working with vctrs
Other
34 stars 7 forks source link

Implement cumany() and cumall() #39

Open hadley opened 4 years ago

romainfrancois commented 3 years ago

originally in #52 so that I can close it:

Doing

cumany(c(NA,3) < 2)

I get NA NA. I would expect an option to do something like

cumany(c(NA,3, na.rm = TRUE) < 2)

in order to get NA FALSE. Is there a way?

Thank you!