knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) # devtools::install_github("papagorgio23/bettoR")
library(bettoR)
BettoR is a package that makes life as a sports bettor much easier. This package has functions covering all the basic functions and math that a sports bettor will need, such as converting odds, calculating implied probabilities or bet payouts, and determining the sportsbook's hold percentage for a given bet. This vignette will serve as a quick introduction into the bettoR package.
The primary goal of this package is to move sports bettors out of Excel and into R. Many of these calculations are simple but having functions pre-built enables clean, consistent coding with reliable results.
There are three primary odds types you will come across in America:
The convert_odds
function can easily switch each of these odds around to whatever format you are most comfortable with.
For example:
convert_odds
function takes in 3 arguments - the odds, the input odds type, and the type of odds you would like the output to be. If you aren't exactly sure about the output, simply set output = "all"
or leave the output argument blank and the function will return all odds types plus the implied probability of the bet. convert_odds(odds = -150, input = "us", output = "all")
hold_calc(-150, 130)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.