View source: R/dgp-lib-utils.R
dots_to_fun_args | R Documentation |
Helper function to process ... args to pass to multiple functions.
dots_to_fun_args( prefix = c("X", "U", "y", "err", "betas", "betas_unobs", "betas_corr", "betas_uncorr"), ... )
prefix |
Character vector of arbitrary prefixes to use in splitting
entries of |
... |
Named arguments to process. |
A list with ".optional_args" as well as entries named like
".X_args"
. For example, when "X"
is one of the elements of
the input character vector prefix
and .X_p = 1
and .X_s
= 2
are both passed via ...
, the ".X_args"
entry of the
output list will be codelist(p = 1, s = 2). With the default value of
prefix
, the output list will the following have entries:
Args to pass to function that generates X.
Args to pass to function that generates U.
Args to pass to function that generates y.
Args to pass to function that generates err
.
Args to pass to function that generates betas
.
Args to pass to function that generates
betas_unobs
.
Args to pass to function that generates
betas_corr
.
Args to pass to function that generates
betas_uncorr
.
Args to pass optionally to all functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.