View source: R/assign_fn_parameters_as_vars.R
assign_fn_parameters_as_vars | R Documentation |
Take a function and assign all the parameters defined within it as values in the specified environment (e.g., global environment)
assign_fn_parameters_as_vars(fun = NULL, envir = NULL)
fun |
a function |
envir |
an environment in which to assign the parameters as
values (default = |
This function can be useful when you are testing a function and you need to set all the function's parameters in a single operation.
## Not run:
assign_fn_parameters_as_vars(pm)
assign_fn_parameters_as_vars(mean)
assign_fn_parameters_as_vars(sum)
assign_fn_parameters_as_vars(lm)
assign_fn_parameters_as_vars(floodlight_2_by_continuous)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.