Description Usage Arguments Value Examples
View source: R/get_win_matrix.R
This function takes a list of a set of dice, and outputs a data frame representing the probabilities of games between the dice. The interpretation of entry (i,j) is the probability that dice i beats dice j.
1 | get_win_matrix(dice_set, dice_ids)
|
dice_set |
The set of dice to be calculated for (a list of numeric vectors). There must be at least two dice to compare. |
dice_ids |
The identifiers for each dice, labels for convenience. |
A single numeric decimal, representing probability of first die beating the second die.
1 | get_win_matrix(list(c(1, 2, 3, 4, 5, 6), c(1, 2, 3, 4, 5, 6)), c("dice_a", "dice_b"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.