View source: R/adverb-negate.R
Negating a function changes
A predicate function (i.e. a function that returns either
A new predicate function.
This function is called an adverb because it modifies the effect of a function (a verb). If you'd like to include a function created an adverb in a package, be sure to read faq-adverbs-export.
x <- list(x = 1:10, y = rbernoulli(10), z = letters) x |> keep(is.numeric) |> names() x |> keep(negate(is.numeric)) |> names() # Same as x |> discard(is.numeric)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.