| cfbd_metrics_wp | R Documentation |
Get win probability chart data from API
cfbd_metrics_wp(game_id)
game_id |
(Integer required): Game ID filter for querying a single game
Can be found using the |
cfbd_metrics_wp() - A data frame with 16 variables:
| col_name | types | description |
| play_id | character | Play referencing id. |
| play_text | character | A text description of the play. |
| home_id | integer | Home team referencing id. |
| home | character | Home team name. |
| away_id | integer | Away team referencing id. |
| away | character | Away team name. |
| spread | numeric | Betting lines provider spread. |
| home_ball | logical | Home team has the ball. |
| home_score | integer | Home team score. |
| away_score | integer | Away team score. |
| down | integer | Down of the play. |
| distance | integer | Distance to the sticks (to 1st down marker or goal-line in goal-to-go situations). |
| home_win_prob | numeric | Home team win probability (0-1). |
| away_win_prob | numeric | Away team win probability (0-1). |
| play_number | integer | Game play number. |
| yard_line | integer | Yard line of the play (0-100 yards). |
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_pregame()
try(cfbd_metrics_wp(game_id = 401012356))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.