espn_cfb_pbp: Get ESPN college football PBP data

View source: R/espn_cfb_game.R

espn_cfb_pbpR Documentation

Get ESPN college football PBP data

Description

Get ESPN college football PBP data

Usage

espn_cfb_pbp(game_id, epa_wpa = FALSE, engine = NULL, output = "default")

Arguments

game_id

Game ID

epa_wpa

Logical parameter (TRUE/FALSE) to return the Expected Points Added/Win Probability Added variables

engine

(Character optional): which play-by-play engine to run. One of "v2", "legacy" or "auto"; NULL (default) resolves from getOption("cfbfastR.pbp_engine"), which itself defaults to "v2" as of this release. "legacy" is the escape hatch that reproduces the pre-2.3.0 frame; "auto" means whatever this version of the package considers current, so it is carried forward by future default flips.

output

(Character): modeled-output column set, one of "default", "lean" or "full". Only meaningful when the call reaches the v2 engine; it is accepted here so a delegating caller can reach the tier selector without switching to the espn_cfb_pbp_v2() name.

Value

A data frame with college football play-by-play data

Author(s)

Saiem Gilani

Examples

 
   try(espn_cfb_pbp(game_id = 401282614, epa_wpa = TRUE))
 


cfbfastR documentation built on Aug. 24, 2026, 5:13 p.m.