dots_to_dsts | R Documentation |
Flattens distributions placed in an ellipsis argument into a list, so that the ellipsis can include distributions themselves and lists of distributions.
dots_to_dsts(..., na.rm = FALSE)
... |
Distribution objects, possibly also lists of distributions. |
na.rm |
Logical; remove NA entries? Note that NULL entries are always removed. |
An error is thrown if, after discarding NULL entries,
...
contains non-distributions. This function is essentially a
wrapper around rlang::flatten()
.
A list of distributions contained in the ...
, with NULL
entries discarded. If no distributions are present, returns list()
.
d <- dst_norm(0, 1)
distplyr:::dots_to_dsts(d, list(d, d), NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.