box: Calculates the probability of a box bet being successful

Description Usage Arguments Value Examples

View source: R/box.R

Description

Calculates the probability of a box bet being successful

Usage

1
box(race_df, picks)

Arguments

race_df,

a data frame containing each horse's name and odds of winning 1st

picks

character vector containing the better's picks for 1st, 2nd, and possibly third picks in no particular order

Value

our calculation of probability

Examples

1
2
box(Kentucky_derby, c('Nyquist','Exaggerator'))
box(race, my_picks)

lshatkin/HorsePackage documentation built on May 21, 2017, 3:34 p.m.