assign_fn_parameters_as_vars {kim} | R Documentation |
Assign function parameters as values
Description
Take a function and assign all the parameters defined within it as values in the specified environment (e.g., global environment)
Usage
assign_fn_parameters_as_vars(fun = NULL, envir = NULL)
Arguments
fun |
a function |
envir |
an environment in which to assign the parameters as
values (default = |
Details
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.
Examples
## 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)
[Package kim version 0.5.422 Index]