cfbd_metrics_wp_pregame: *Get pre-game win probability data from API*

View source: R/cfbd_metrics.R

cfbd_metrics_wp_pregameR Documentation

Get pre-game win probability data from API

Description

Get pre-game win probability data from API

Usage

cfbd_metrics_wp_pregame(
  year = NULL,
  week = NULL,
  team = NULL,
  season_type = "both"
)

Arguments

year

(Integer optional): Year, 4 digit format (YYYY)
Minimum value accepted: 2013

week

(Integer optional): Week - values from 1-15, 1-14 for seasons pre-playoff, i.e. 2013 or earlier

team

(String optional): D-I Team

season_type

(String default both): Season type - regular, postseason, both, allstar, spring_regular, spring_postseason

Value

cfbd_metrics_wp_pregame() - A data frame with 9 variables:

col_name types description
season integer Season of the game.
season_type character Season type of the game (regular, postseason, etc.).
week integer Game week of the season.
game_id integer Referencing game id.
home_team character Home team name.
away_team character Away team name.
spread numeric Betting line provider spread.
home_win_prob numeric Home win probability - pre-game prediction (0-1).
away_win_prob numeric Away win probability - pre-game prediction (0-1).

See Also

Other CFBD Metrics: cfbd_metrics_fg_ep(), cfbd_metrics_ppa_games(), cfbd_metrics_ppa_players_games(), cfbd_metrics_ppa_players_season(), cfbd_metrics_ppa_predicted(), cfbd_metrics_ppa_teams(), cfbd_metrics_wepa_players_kicking(), cfbd_metrics_wepa_players_passing(), cfbd_metrics_wepa_players_rushing(), cfbd_metrics_wepa_team_season(), cfbd_metrics_wp()

Examples


  try(cfbd_metrics_wp_pregame(year = 2019, week = 9, team = "Texas A&M"))


cfbfastR documentation built on Aug. 24, 2026, 5:13 p.m.