# NOT RUN {
set.seed(123)
rudirichlet(2, 3)
# Should produce the following matrix:
# [,1] [,2] [,3]
# [1,] 0.30681 0.2097 0.4834
# [2,] 0.07811 0.1390 0.7829
# The above could be seen as a sample of two Bayesian bootstrap weights for a
# dataset of size three.
# }
Run the code above in your browser using DataLab