Description Usage Arguments Value Examples
Assign the 'formals' of a function to the global enviroment. Helpful when debugging or prototyping.
1 | assign_formals(fun)
|
fun |
A function. |
Assigns the default values of the arguments of a function to variables of the argument name. Invisibly returns the assigned variable names.
1 2 3 4 5 | assigned_vars <- assign_formals(stats::binom.test)
sort(assigned_vars)
ls()
alternative
eval(alternative)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.