Skip to contents

Returns projected tempo, points per possesssion, total points scored, and win percentage for any matchup at any location back to the 2014-15 season using Barttorvik's formulas and data.

Usage

cbd_torvik_game_prediction(team, opp, date = NULL, location = "H")

Arguments

team

Team 1 in matchup (primary team)

opp

Team 2 in matchup (opponent)

date

Date of game and must be a consecutive string in YYYYMMDD format (defaults to current day)

location

Location of game relative to team ('H', 'A', or 'N'), defaults to 'H' (home)

Value

Returns a tibble with game predictions.

Examples

try(cbd_torvik_game_prediction('Duke', 'Charlotte', '20221110'))
#> We notice that this is your first time logging into `cbbdata`. 
#> This process will require restarting your R session. 
#> Do you want to continue [Y/N]
#> 
#> Invalid username or password!
#> Error in cbbdata::cbd_login() : object 'resp' not found