R/dist_spec.R
get_parameters.Rd
get_parameters(x, id = NULL)
A <dist_spec>.
<dist_spec>
Integer; the id of the distribution to use (if x is a composite distribution). If x is a single distribution this is ignored and can be left at its default value of NULL.
x
NULL
A list of parameters of the distribution.
dist <- Gamma(shape = 3, rate = 2) get_parameters(dist) #> $shape #> [1] 3 #> #> $rate #> [1] 2 #>