modify_call | R Documentation |
Modify the arguments of a call.
modify_call(call, new_args)
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 |
call <- quote(mean(x, na.rm = TRUE)) # Modify an existing argument modify_call(call, list(na.rm = FALSE)) modify_call(call, list(x = quote(y))) # Remove an argument modify_call(call, list(na.rm = NULL)) # Add a new argument modify_call(call, list(trim = 0.1)) # Add an explicit missing argument modify_call(call, list(na.rm = quote(expr = )))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.