| ard_formals | R Documentation |
Place default and passed argument values to a function into an ARD structure.
ard_formals(fun, arg_names, passed_args = list(), envir = parent.frame())
fun |
( |
arg_names |
( |
passed_args |
(named |
envir |
( |
an partial ARD data frame of class 'card'
# Example 1 ----------------------------------
# add the `mcnemar.test(correct)` argument to an ARD structure
ard_formals(fun = mcnemar.test, arg_names = "correct")
# Example 2 ----------------------------------
# S3 Methods need special handling to access the underlying method
ard_formals(
fun = asNamespace("stats")[["t.test.default"]],
arg_names = c("mu", "paired", "var.equal", "conf.level"),
passed_args = list(conf.level = 0.90)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.