odds.vig: Calculate the vigorish from a vector of vigged odds.

Description Usage Arguments Value Examples

View source: R/odds.vig.R

Description

Calculate the vigorish from a vector of vigged odds.

Usage

1
odds.vig(..., input = "us")

Arguments

...

Odds of the format defined in input, the odds can be submitted as a data.frame or as a vector

input

Default to US Odds. Valid selections are "us" for US odds, "prob" for Probability ,"dec" for Decimal odds,"malay" for Malaysian odds, "hk" for Hong Kong odds, "indo" for Indonesian odds

Value

A vector of the vigs of the the given vigged odds

Examples

1
2
3
4
5
6
odds.vig(-120,110)
odds.vig(2.05,3.12,2.90,input="dec")
df <- data.frame(Home = c(1.5,1.8,1.9),
                Away = c(2.9,2.2,2.05))
odds.vig(df,input = "dec")
odds.vig(df$Home,df$Away,input="dec")

marcoblume/odds.converter documentation built on May 21, 2019, 11:43 a.m.