cfb_metrics_wp: Get win probability chart data from API

Description Usage Arguments Value Source Examples

View source: R/cfb_metrics_wp.R

Description

Get win probability chart data from API

Usage

1
cfb_metrics_wp(game_id)

Arguments

game_id

(Integer required): Game ID filter for querying a single game
Can be found using the cfbscrapR::cfb_game_info() function

Value

A data frame with 16 variables:

play_id

character.

play_text

character.

home_id

integer.

home

character.

away_id

integer.

away

character.

spread

character.

home_ball

logical.

home_score

integer.

away_score

integer.

down

integer.

distance

integer.

home_win_prob

character.

away_win_prob

double.

play_number

integer.

yard_line

integer.

Source

https://api.collegefootballdata.com/metrics/wp

Examples

1
cfb_metrics_wp(game_id = 401012356)

meysubb/cfbscrapR documentation built on Dec. 15, 2020, 11:26 p.m.