Make functions from utils::getParseData()
output
Arguments
- x
for
make_fxn
, a data.frame, as output fromutils::getParseData()
; formake_fxns
, a list of those
Examples
if (FALSE) { # \dontrun{
foo <- function(x) {
if (x == 1) x else 5
}
foo
f <- mutate_one(foo)
f
x = f
make_fxn(f)
bar <- function(w) {
if (w == 10) w else 5
}
g <- mutate_one(bar)
make_fxns(list(f, g))
} # }