R/dice.R

#' Generate Random Vector of Dice Throws
#'
#' Generate a random vector of dice throws.
#'
#' @inheritParams r_sample_factor
#' @return Returns a random vector of dice throw elements.
#' @keywords dice
#' @export
#' @include utils.R r_sample.R
#' @family variable functions
#' @examples
#' dice(10)
#' barplot(table(dice(10000)))
dice <- hijack(r_sample,
    name = "Dice",
    x = 1:6
)

Try the wakefield package in your browser

Any scripts or data that you put into this service are public.

wakefield documentation built on Sept. 14, 2020, 1:07 a.m.