probs_table: Probability table

View source: R/functions.R

probs_tableR Documentation

Probability table

Description

Put winning probabilities in nice table

Usage

probs_table(probs, margins = TRUE)

Arguments

probs

numeric vector of length 6, representing outcome probabilities (must sum to 1 or 100)

margins

boolean. Should margin totals be added? Defaults to TRUE

Value

data.frame with rownames

Examples

# XGID=-a-BaBC-A---eE---c-e----B-:0:0:1:00:0:0:0:0:10
# 4-ply winning chances, reported in a cumulative fashion:
cum_probs <- c(61.94, 24.09, 1.04, 38.06, 8.54, 0.42)
probs <- outcome_probs(cum_probs)
probs_table(probs)


lassehjorthmadsen/backgammon documentation built on Jan. 25, 2025, 7:24 a.m.