This function converts any odds or probability.
Arguments
- odds
Odds, or lines, for a given bet(s) (-115, -105)
- input
Type of odds for the input. Possible values are:
us
, American Oddsdec
, Decimal Oddsfrac
, Fractional Odds
- output
Type of odds for the output. Possible values are:
all
, Returns all Oddsus
, American Oddsdec
, Decimal Oddsfrac
, Fractional Oddsprob
, Implied Probability
Examples
convert_odds(c(-110, -110))
#> Decimal American Fraction Implied_Probability
#> 1 1.909091 -110 10/11 0.5238095
#> 2 1.909091 -110 10/11 0.5238095
convert_odds(
odds = c(1.1, 2.1, 13, 6.5, 1.909),
input = "dec",
output = "us"
)
#> [1] -1000 110 1200 550 -110
convert_odds(
odds = c(1/10, 11/10, 12/1, 11/2, 10/11),
input = "frac",
output = "all"
)
#> Decimal American Fraction Implied_Probability
#> 1 1.100000 -1000 1/10 0.90909091
#> 2 2.100000 110 11/10 0.47619048
#> 3 13.000000 1200 12 0.07692308
#> 4 6.500000 550 11/2 0.15384615
#> 5 1.909091 -110 10/11 0.52380952