View source: R/mutate_parameters.R
mutate_parameters | R Documentation |
Modify distribution parameters. A lightweight function that only checks that the parameter you're modifying already exists in the distribution.
mutate_parameters(distribution, ...)
distribution |
Parametric distribution |
... |
Named expressions; quoted. Names should be parameters names of the distribution. Expressions can involve computations with other parameters. |
Parameters are not modified on-the-fly. That means parameters that are
modified earlier in ...
still retain their original values for use
downstream in ...
.
The input distribution, with the parameters modified as specified
in ...
.
d <- distionary::dst_unif(1, 3)
distplyr:::mutate_parameters(d, min = max - min)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.