bart_pregame: Get Pregame Probabilities

View source: R/bart_pregame.R

bart_pregameR Documentation

Get Pregame Probabilities

Description

Returns pregame win probabilities, expected scores, and thrill quotients for all games.

Usage

bart_pregame(year = current_season(), team = NULL, type = NULL, game_id = NULL)

Arguments

year

Defaults to current season (YYYY).

team

Team to filter for.

type

Game type to filter for ('nc', 'conf', 'conf_t', 'post', 'nond1')

game_id

Game ID to filter for.

Details

Under the 'type' column, games are classified by one of five indicators, explained below:

nc

Non-conference games between two D-1 teams.

conf

In-conference games.

conf_t

Conference tournament games.

post

Post-conference tournament games.

nond1

Games involving one non-D1 team.

Value

Returns a tibble with 13 columns:

date

double.

conf

character.

line

character.

ttq

double. Torvik Thrill Quotient – measures how good the teams are, how close the game is projected to be, and how fast the tempo is projected to be.

type

character. See details.

team1

character.

team1_wp

double. Estimated win percentage.

team1_pts

double. Estimated total points.

team2

character.

team2_wp

double. Estimated win percentage.

team2_pts

double. Estimated total points.

game_id

character.

year

double.

Examples

try(bart_pregame(year=2022))


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