Sample n times from a Dirichlet
fun_rdirichlet(n, a, text = "x")
n | number of samples |
---|---|
a | Dirichlet parameter (a vector that will be coerced to numeric) |
text | optional variable names (default: |
a tibble with named columns, where each row is a Dirichlet sample
Other RNG functions:
fun_rdirichlet_hyperparameter()