cfb_metrics_wp_pregame: Get Pre-game Win Probability Data from API

Description Usage Arguments Value Examples

View source: R/cfb_metrics_wp_pregame.R

Description

Get Pre-game Win Probability Data from API

Usage

1
2
3
4
5
6
cfb_metrics_wp_pregame(
  year = NULL,
  week = NULL,
  team = NULL,
  season_type = "regular"
)

Arguments

year

(Integer optional): Year, 4 digit format (YYYY)

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 regular): Select Season Type: regular or postseason

Value

A data frame with 9 variables:

season

integer.

season_type

character.

week

integer.

game_id

integer.

home_team

character.

away_team

character.

spread

integer.

home_win_prob

double.

away_win_prob

double.

Examples

1
cfb_metrics_wp_pregame(year = 2019, week=9, team='Texas A&M')

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