call_modify | R Documentation |
Modify the arguments of a call.
call_modify(call, new_args, env = parent.frame()) call_standardise(call, env = parent.frame())
call |
A call to modify. It is first standardised with
|
new_args |
A named list of expressions (constants, names or calls)
used to modify the call. Use |
env |
Environment in which to look up call value. |
call <- quote(mean(x, na.rm = TRUE)) call_standardise(call) # Modify an existing argument call_modify(call, list(na.rm = FALSE)) call_modify(call, list(x = quote(y))) # Remove an argument call_modify(call, list(na.rm = NULL)) # Add a new argument call_modify(call, list(trim = 0.1)) # Add an explicit missing argument call_modify(call, list(na.rm = quote(expr = )))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.