as_function | R Documentation |
<epiparameter>
or NULL
to functionAn extension to as.function()
, particularly the epiparameter
as.function
S3 method, with the added feature that NULL
s are converted
into functions that generate a vector of NA
s to behave equivalently to
the generator functions output from
as.function(..., func_type = "generate")
.
If a function is already passed to as_function
it will be returned
unchanged.
There is also input checking to error if input is not an <epiparameter>
,
function
(closure), or for onset-to-event distributions NULL
.
as_function(x)
x |
A named list containing either |
A list of function
s.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.