View source: R/8_function_operators.R
negate | R Documentation |
Standard function operator.
negate(f)
f |
A function to be negated. |
Negate any function.
library(functionalPlayground)
always_true <- function(...) {
return(TRUE)
}
always_false <- negate(always_true)
always_false(TRUE)
always_false(FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.