31 lines
773 B
Text
31 lines
773 B
Text
|
% Generated by roxygen2: do not edit by hand
|
||
|
% Please edit documentation in R/makeDie.R
|
||
|
\name{makeDie}
|
||
|
\alias{makeDie}
|
||
|
\title{Create a custom die.}
|
||
|
\usage{
|
||
|
makeDie(numbers, probs = NULL)
|
||
|
}
|
||
|
\arguments{
|
||
|
\item{numbers}{A vector of the numbers that the die can roll on}
|
||
|
|
||
|
\item{probs}{A vecor of the probabilities for the numbers that the die can
|
||
|
roll on. By default the probabilities are assumed to be equal.}
|
||
|
}
|
||
|
\value{
|
||
|
A \code{Die} object containing a vector of numbers the die can roll
|
||
|
on, as well as a vector of probabilities. It also has a text label set.
|
||
|
}
|
||
|
\description{
|
||
|
Create a custom die.
|
||
|
}
|
||
|
\examples{
|
||
|
stealth <- makeDie(1:20+3)
|
||
|
summary(stealth)
|
||
|
|
||
|
}
|
||
|
\seealso{
|
||
|
\code{\link{mean.Die}}, \code{\link{plot.Die}},
|
||
|
\code{\link{summary.Die}}, and \code{\link{print.Die}}.
|
||
|
}
|