bart_game_prediction: T-Rank Game Prediction

View source: R/bart_game_prediction.R

bart_game_predictionR Documentation

T-Rank Game Prediction

Description

Returns game predictions using Barttorvik's model

Usage

bart_game_prediction(team = NULL, opp = NULL, date = NULL, location = "N")

Arguments

team

Team for game

opp

Opponent for game

date

Date for game; YYYYMMDD format

location

Location for game ('N', 'H', or 'A')

Details

Function returns projected score, points per possession, tempo, and win percentage for a given match-up on a given day

Value

Returns a tibble with eight columns:

team

character.

date

date.

location

character.

tempo

double.

ppp

double.

pts

double.

win_per

double.

did_win

logical.

Examples

try(bart_game_prediction(team='Duke', opp='North Carolina', date='20220402'))


toRvik documentation built on Nov. 10, 2022, 5:50 p.m.