powered by
Get win probability chart data from API
cfbd_metrics_wp(game_id)
(Integer required): Game ID filter for querying a single game Can be found using the cfbd_game_info() function
cfbd_game_info()
cfbd_metrics_wp() - A data frame with 16 variables:
cfbd_metrics_wp()
play_id
Play referencing id.
play_text
A text description of the play.
home_id
Home team referencing id.
home
Home team name.
away_id
Away team referencing id.
away
Away team name.
spread
Betting lines provider spread.
home_ball
Home team has the ball.
home_score
Home team score.
away_score
Away team score.
down
Down of the play.
distance
Distance to the sticks (to 1st down marker of goal-line in goal-to-go situations).
home_win_prob
Home team win probability.
away_win_prob
Away team win probability.
play_number
Game play number.
yard_line
Yard line of the play (0-100 yards).
# NOT RUN { try(cfbd_metrics_wp(game_id = 401012356)) # }
Run the code above in your browser using DataLab