mutate | R Documentation |
Goal here is to input many functions but only make one mutation in one the functions to better isolate the effect of the mutation. See Details.
mutate(x)
x |
a list of output from |
use a while loop internally; attempt to mutate each function until we make a successful mutation, and then return the complete set of functions with one function with one mutation
a list of the above
## Not run:
foo <- function(x) {
if (x == 1) x else 5
}
bar <- function(w) {
if (w == 10) w else 5
}
mutate(list(foo, bar))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.