powered by
Get pre-game win probability data from API
cfbd_metrics_wp_pregame( year = NULL, week = NULL, team = NULL, season_type = "regular" )
(Integer optional): Year, 4 digit format (YYYY)
(Integer optional): Week - values from 1-15, 1-14 for seasons pre-playoff, i.e. 2013 or earlier
(String optional): D-I Team
(String default regular): Select Season Type: regular or postseason
cfbd_metrics_wp_pregame() - A data frame with 9 variables:
cfbd_metrics_wp_pregame()
season
Season of game.
season_type
Season type of game.
week
Game week of the season.
game_id
Referencing game id.
home_team
Home team name.
away_team
Away team name.
spread
Betting line provider spread.
home_win_prob
Home win probability - pre-game prediction.
away_win_prob
Away win probability - pre-game prediction.
# NOT RUN { try(cfbd_metrics_wp_pregame(year = 2019, week = 9, team = "Texas A&M")) # }
Run the code above in your browser using DataLab