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.

Sports Betting Math 101

Converting Odds

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(odds = -150, input = "us", output = "all")


Calculate Sportsbooks' Hold Percentage

hold_calc(-150, 130)


papagorgio23/bettoR documentation built on May 24, 2023, 5:01 a.m.