Negate a predicate function.
Negate a predicate function.
negate(.p)
.p |
A single predicate function, a formula describing such a
predicate function, or a logical vector of the same length as |
A new predicate function.
negate("x") negate(is.null) negate(~ .x > 0) x <- transpose(list(x = 1:10, y = rbernoulli(10))) x %>% keep("y") %>% length() x %>% keep(negate("y")) %>% length() # Same as x %>% discard("y") %>% length()
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.