For distributions that have parameters, this function places those parameters in bracket notation, such as (0, 1) for a Normal distribution with a mean of 0 and variance of 1.
Arguments
- distribution
A single distplyr distribution for which the
parameters()
function can be applied.- param_digits
Number of significant digits to include in the output.
Examples
d <- dst_norm(0, 1)
distionary:::bracket_parameters(d)
#> [1] "(0, 1)"