get_win_matrix: Win matrix calculator

Description Usage Arguments Value Examples

View source: R/get_win_matrix.R

Description

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.

Usage

1
get_win_matrix(dice_set, dice_ids)

Arguments

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.

Value

A single numeric decimal, representing probability of first die beating the second die.

Examples

1
get_win_matrix(list(c(1, 2, 3, 4, 5, 6), c(1, 2, 3, 4, 5, 6)), c("dice_a", "dice_b"))

andreyrisukhin/ntdice documentation built on Dec. 19, 2021, 3:34 a.m.