Skip to contents

Extract college football (D-I) play by play Data - for plays

Usage

cfbd_pbp_data(
  year,
  season_type = "regular",
  week = 1,
  team = NULL,
  play_type = NULL,
  epa_wpa = FALSE,
  ...
)

Arguments

year

Select year, (example: 2018)

season_type

(String default regular): Season type - regular, postseason, both, allstar, spring_regular, spring_postseason

week

Select week, this is optional (also numeric)

team

Select team name (example: Texas, Texas A&M, Clemson)

play_type

Select play type (example: see the cfbd_play_type_df)

epa_wpa

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

...

Additional arguments passed to an underlying function.

Value

A data frame with 368 variables:

col_nametypesdescription
seasonnumericFour-digit season year (e.g. 2024).
wknumericSeason week number (1-15 regular season, 1 for bowl/postseason week).
id_playcharacterUnique CFBD play identifier (concatenates game_id and play index).
game_idintegerCFBD-internal game identifier.
game_play_numbernumericSequential play number within the game (excludes timeouts/end markers).
half_play_numbernumericSequential play number within the current half.
drive_play_numbernumericSequential play number within the current drive.
pos_teamcharacterTeam name in possession at the start of the play (offense, kickoff-aware).
def_pos_teamcharacterTeam name on defense at the start of the play.
pos_team_scoreintegerScore for the team in possession at the start of the play.
def_pos_team_scoreintegerScore for the defensive team at the start of the play.
halffactorHalf indicator (1 or 2).
periodintegerQuarter number (1-4, 5+ for overtime).
clock_minutesintegerMinutes remaining on the period clock at the start of the play.
clock_secondsintegerSeconds remaining on the period clock at the start of the play.
play_typecharacterCFBD play type label (e.g. "Rush", "Pass Reception", "Field Goal Good").
play_textcharacterFree-text description of the play from CFBD.
downnumericDown number at the start of the play (1-4).
distancenumericYards to gain for a first down at the start of the play.
yards_to_goalnumericYards from the offense to the opponent's end zone at the start of the play.
yards_gainednumericYards gained (or lost) by the offense on the play.
EPAnumericExpected Points Added on the play (cfbfastR EPA model output).
ep_beforenumericExpected points value before the play (cfbfastR EPA model).
ep_afternumericExpected points value after the play (cfbfastR EPA model).
wpanumericWin Probability Added on the play (cfbfastR WP model output).
wp_beforenumericWin probability for the possession team before the play (0-1).
wp_afternumericWin probability for the possession team after the play (0-1).
def_wp_beforenumericWin probability for the defensive team before the play (0-1).
def_wp_afternumericWin probability for the defensive team after the play (0-1).
penalty_detailcharacterParsed penalty description extracted from play text.
yds_penaltynumericYardage assessed on the penalty.
penalty_1st_convlogicalTRUE when the penalty resulted in a first down conversion.
new_seriesnumericBinary flag for the start of a new series of downs.
firstD_by_kickoffnumericBinary flag for a new first down arising from a kickoff.
firstD_by_possnumericBinary flag for a new first down via change of possession.
firstD_by_penaltynumericBinary flag for a new first down via penalty.
firstD_by_yardsnumericBinary flag for a new first down via yards gained.
def_EPAnumericEPA for the defensive team on the play (sign-flipped offense EPA).
home_EPAnumericEPA for the home team on the play.
away_EPAnumericEPA for the away team on the play.
home_EPA_rushnumericRushing EPA for the home team on the play.
away_EPA_rushnumericRushing EPA for the away team on the play.
home_EPA_passnumericPassing EPA for the home team on the play.
away_EPA_passnumericPassing EPA for the away team on the play.
total_home_EPAnumericCumulative total EPA for the home team through the play.
total_away_EPAnumericCumulative total EPA for the away team through the play.
total_home_EPA_rushnumericCumulative rushing EPA for the home team through the play.
total_away_EPA_rushnumericCumulative rushing EPA for the away team through the play.
total_home_EPA_passnumericCumulative passing EPA for the home team through the play.
total_away_EPA_passnumericCumulative passing EPA for the away team through the play.
net_home_EPAnumericNet EPA differential (home minus away) through the play.
net_away_EPAnumericNet EPA differential (away minus home) through the play.
net_home_EPA_rushnumericNet rushing EPA differential for the home team through the play.
net_away_EPA_rushnumericNet rushing EPA differential for the away team through the play.
net_home_EPA_passnumericNet passing EPA differential for the home team through the play.
net_away_EPA_passnumericNet passing EPA differential for the away team through the play.
successnumericBinary success-rate flag using the 50/70/100 percent down-state thresholds.
epa_successnumericBinary flag for plays with positive EPA (EPA > 0).
rz_playnumericBinary flag for a red-zone play (yards_to_goal <= 20).
scoring_oppnumericBinary flag for a scoring opportunity (yards_to_goal <= 40).
middle_8logicalTRUE for plays in the middle-8 window (final 4 min of 1H, first 4 min of 2H).
stuffed_runnumericBinary flag for a stuffed run (zero or negative yards gained).
change_of_pos_teamnumericBinary flag for change of possession-team on the play.
downs_turnovernumericBinary flag for a turnover on downs.
turnovernumericBinary flag for any turnover on the play.
pos_score_diff_startnumericScore differential for the possession team at the start of the play.
pos_score_ptsnumericPoints scored on the play attributed to the possession team.
log_ydstogonumericNatural log of distance-to-go (model feature).
ExpScoreDiffnumericExpected score differential at the start of the play (EPA-adjusted).
ExpScoreDiff_Time_RationumericExpected score differential scaled by share of time remaining.
half_clock_minutesnumericMinutes remaining in the half (15 + clock_minutes when in Q1/Q3).
TimeSecsRemnumericSeconds remaining in the half at the start of the play.
adj_TimeSecsRemnumericAdjusted seconds remaining used by the EPA/WP models.
Goal_To_GologicalTRUE when the offense is in a goal-to-go situation.
Under_twologicalTRUE when under two minutes remain in the half.
homecharacterHome team name.
awaycharacterAway team name.
home_wp_beforenumericHome team win probability before the play (0-1).
away_wp_beforenumericAway team win probability before the play (0-1).
home_wp_afternumericHome team win probability after the play (0-1).
away_wp_afternumericAway team win probability after the play (0-1).
end_of_halfnumericBinary flag for the last play of a half.
pos_team_receives_2H_kickoffnumericBinary flag indicating possession team receives the second-half kickoff.
lead_pos_teamcharacterPossession team on the next play (lead value).
lead_play_typecharacterPlay type on the next play (lead value).
lag_pos_teamcharacterPossession team on the previous play (lag value).
lag_play_typecharacterPlay type on the previous play (lag value).
orig_play_typecharacterOriginal CFBD play type label before cfbfastR cleaning.
Under_threelogicalTRUE when under three minutes remain in the half.
down_endfactorDown number at the end of the play (post-play state).
distance_endnumericDistance-to-go at the end of the play (post-play state).
log_ydstogo_endnumericNatural log of post-play distance-to-go (model feature).
yards_to_goal_endnumericYards to opponent end zone at the end of the play.
TimeSecsRem_endnumericSeconds remaining in the half at the end of the play.
Goal_To_Go_endlogicalTRUE when the post-play state is goal-to-go.
Under_two_endlogicalTRUE when the post-play state is under two minutes.
offense_score_playnumericBinary flag for an offensive scoring play.
defense_score_playnumericBinary flag for a defensive scoring play.
ppanumericPredicted Points Added from the CFBD ppa endpoint (CFB-EPA analogue).
yard_lineintegerYard line where the play started (raw CFBD yardline field).
scoringlogicalTRUE when the play resulted in a score (CFBD scoring flag).
pos_team_timeouts_rem_beforenumericPossession team timeouts remaining before the play.
def_pos_team_timeouts_rem_beforenumericDefensive team timeouts remaining before the play.
pos_team_timeoutsintegerPossession team timeouts remaining after the play.
def_pos_team_timeoutsintegerDefensive team timeouts remaining after the play.
pos_score_diffintegerScore differential from the possession team's perspective.
pos_score_diff_start_endnumericScore differential aggregated from start to end of the play.
offense_playcharacterOffensive team name as labeled by CFBD on the play.
defense_playcharacterDefensive team name as labeled by CFBD on the play.
offense_receives_2H_kickoffnumericBinary flag indicating offense receives the second-half kickoff.
change_of_possnumericBinary flag for change of possession on the play (CFBD offense field).
score_ptsnumericPoints scored on the play.
score_diff_startnumericScore differential at the start of the play.
score_diffintegerScore differential (offense_score - defense_score) at the start.
offense_scoreintegerOffense team score at the start of the play.
defense_scoreintegerDefense team score at the start of the play.
offense_conferencecharacterConference name of the offensive team.
defense_conferencecharacterConference name of the defensive team.
off_timeout_callednumericBinary flag for an offensive timeout called during the play.
def_timeout_callednumericBinary flag for a defensive timeout called during the play.
offense_timeoutsintegerOffense timeouts remaining after the play (CFBD field).
defense_timeoutsintegerDefense timeouts remaining after the play (CFBD field).
off_timeouts_rem_beforenumericOffense timeouts remaining before the play.
def_timeouts_rem_beforenumericDefense timeouts remaining before the play.
rusher_player_namecharacterName of the rusher on a rushing play.
yds_rushednumericRushing yards gained on the play.
passer_player_namecharacterName of the passer on a passing play.
receiver_player_namecharacterName of the receiver on a passing play.
yds_receivingnumericReceiving yards gained on the play.
yds_sackednumericYards lost on the sack.
sack_playerscharacterCombined names of all sack participants.
sack_player_namecharacterPrimary sack player name.
sack_player_name2characterSecondary sack player name (when split between two defenders).
pass_breakup_player_namecharacterName of the defender credited with the pass breakup.
interception_player_namecharacterName of the defender credited with the interception.
yds_int_returnnumericYards gained on an interception return.
fumble_player_namecharacterName of the player who fumbled.
fumble_forced_player_namecharacterName of the player who forced the fumble.
fumble_recovered_player_namecharacterName of the player who recovered the fumble.
yds_fumble_returnnumericYards gained on a fumble return.
punter_player_namecharacterName of the punter.
yds_puntednumericYards the ball traveled on the punt.
punt_returner_player_namecharacterName of the punt returner.
yds_punt_returnnumericYards gained on the punt return.
yds_punt_gainednumericNet yards gained on the punt (punt distance minus return).
punt_block_player_namecharacterName of the player credited with blocking the punt.
punt_block_return_player_namecharacterName of the player returning a blocked punt.
fg_kicker_player_namecharacterName of the field goal kicker.
yds_fgnumericDistance of the field goal attempt in yards.
fg_block_player_namecharacterName of the player credited with blocking the field goal.
fg_return_player_namecharacterName of the player returning the blocked/missed field goal.
kickoff_player_namecharacterName of the kickoff specialist.
yds_kickoffnumericYards the ball traveled on the kickoff.
kickoff_returner_player_namecharacterName of the kickoff returner.
yds_kickoff_returnnumericYards gained on the kickoff return.
new_idnumericNumeric play index within the game (id_play with game_id stripped).
orig_drive_numberintegerOriginal CFBD drive number for the play.
drive_numberintegercfbfastR-cleaned drive number for the play.
drive_result_detailedcharacterDetailed drive result label (e.g. "Punt", "Passing Touchdown", "Downs Turnover").
new_drive_ptsnumericPoints scored on the drive (signed for offense/defense).
drive_idnumericCFBD drive identifier.
drive_resultcharacterCFBD drive result label.
drive_start_yards_to_goalnumericYards to goal at the start of the drive.
drive_end_yards_to_goalintegerYards to goal at the end of the drive.
drive_yardsintegerNet yards gained on the drive.
drive_scoringnumericBinary flag for a scoring drive.
drive_ptsnumericPoints scored on the drive (CFBD/cfbfastR reconciled value).
drive_start_periodintegerPeriod (quarter) at the start of the drive.
drive_end_periodintegerPeriod (quarter) at the end of the drive.
drive_time_minutes_startintegerMinutes on the clock at the start of the drive.
drive_time_seconds_startintegerSeconds on the clock at the start of the drive.
drive_time_minutes_endintegerMinutes on the clock at the end of the drive.
drive_time_seconds_endintegerSeconds on the clock at the end of the drive.
drive_time_minutes_elapsedlogicalMinutes elapsed during the drive.
drive_time_seconds_elapsedlogicalSeconds elapsed during the drive.
drive_numbersnumericBinary flag marking the first play of a new drive.
number_of_drivesnumericCumulative count of drives in the game.
pts_scorednumericPoints scored on the play, signed by play_type rule.
drive_result_detailed_flagcharacterPre-fill copy of drive_result_detailed used during drive reconciliation.
drive_result2characterShort-form drive result label (e.g. "TD", "PUNT", "DOWNS").
drive_numnumericGame-scoped drive sequence number.
lag_drive_result_detailedcharacterDrive result detailed on the previous play (lag value).
lead_drive_result_detailedcharacterDrive result detailed on the next play (lead value).
lag_new_drive_ptsnumericDrive points on the previous play (lag value).
id_drivecharacterComposite drive identifier (game_id concatenated with drive_num).
rushnumericBinary flag for a rushing play.
rush_tdnumericBinary flag for a rushing touchdown.
passnumericBinary flag for a passing play (includes sacks).
pass_tdnumericBinary flag for a passing touchdown.
completionnumericBinary flag for a completed pass.
pass_attemptnumericBinary flag for a pass attempt.
targetnumericBinary flag for a targeted receiver on the play.
sack_vecnumericBinary flag for a sack play.
sacknumericBinary flag for a sack (duplicate of sack_vec for downstream use).
intnumericBinary flag for an interception.
int_tdnumericBinary flag for an interception returned for a touchdown.
turnover_vecnumericBinary flag for any play classified as a turnover.
turnover_vec_lagnumericLag of turnover_vec (previous-play turnover flag).
turnover_indicatornumericComposite turnover indicator including failed 4th downs.
kickoff_playnumericBinary flag for a kickoff play.
receives_2H_kickoffnumericBinary flag for the team receiving the second-half kickoff.
missing_yard_flaglogicalTRUE when post-play yardage had to be imputed.
scoring_playnumericBinary flag for any scoring play.
td_playnumericBinary flag for a touchdown play.
touchdownnumericBinary flag for a touchdown (duplicate of td_play for downstream use).
safetynumericBinary flag for a safety.
fumble_vecnumericBinary flag for a play involving a fumble.
kickoff_tbnumericBinary flag for a kickoff touchback.
kickoff_onsidenumericBinary flag for an onside kickoff attempt.
kickoff_oobnumericBinary flag for a kickoff out of bounds.
kickoff_fair_catchnumericBinary flag for a kickoff fair catch.
kickoff_downednumericBinary flag for a kickoff downed in the field of play.
kickoff_safetynumericBinary flag for a kickoff safety.
kick_playnumericBinary flag for any kicking play (kickoff or field goal).
puntnumericBinary flag for a punt play.
punt_playnumericBinary flag for any punt-related play (includes blocks/returns).
punt_tbnumericBinary flag for a punt touchback.
punt_oobnumericBinary flag for a punt out of bounds.
punt_fair_catchnumericBinary flag for a punt fair catch.
punt_downednumericBinary flag for a punt downed in the field of play.
punt_safetynumericBinary flag for a punt safety.
punt_blockednumericBinary flag for a blocked punt.
penalty_safetynumericBinary flag for a safety scored on a penalty.
fg_indsnumericBinary flag for a field goal attempt.
fg_madelogicalTRUE when the field goal attempt was successful.
fg_make_probnumericPredicted probability of making the field goal (cfbfastR FG model, 0-1).
No_Score_beforenumericPre-play predicted probability of no score before end of half (cfbfastR EP model, 0-1).
FG_beforenumericPre-play predicted probability of a posteam field goal next (0-1).
Opp_FG_beforenumericPre-play predicted probability of a defteam field goal next (0-1).
Opp_Safety_beforenumericPre-play predicted probability of a defteam safety next (0-1).
Opp_TD_beforenumericPre-play predicted probability of a defteam touchdown next (0-1).
Safety_beforenumericPre-play predicted probability of a posteam safety next (0-1).
TD_beforenumericPre-play predicted probability of a posteam touchdown next (0-1).
No_Score_afternumericPost-play predicted probability of no score before end of half (0-1).
FG_afternumericPost-play predicted probability of a posteam field goal next (0-1).
Opp_FG_afternumericPost-play predicted probability of a defteam field goal next (0-1).
Opp_Safety_afternumericPost-play predicted probability of a defteam safety next (0-1).
Opp_TD_afternumericPost-play predicted probability of a defteam touchdown next (0-1).
Safety_afternumericPost-play predicted probability of a posteam safety next (0-1).
TD_afternumericPost-play predicted probability of a posteam touchdown next (0-1).
penalty_flaglogicalTRUE when a penalty was flagged on the play.
penalty_declinedlogicalTRUE when the penalty was declined.
penalty_no_playlogicalTRUE when the penalty nullified the play (no play counted).
penalty_offsetlogicalTRUE when offsetting penalties were called.
penalty_textlogicalTRUE when penalty information is detectable in the play text.
penalty_play_textcharacterPenalty-related substring extracted from the play text.
lead_wp_before2numericWin probability two plays ahead (lead 2 of wp_before).
wpa_half_endnumericWPA contribution from the end-of-half adjustment.
wpa_basenumericBase WPA component used to assemble the final wpa value.
wpa_base_nxtnumericWPA base component looking ahead one play.
wpa_changenumericWPA change-of-possession component for the current play.
wpa_change_nxtnumericWPA change-of-possession component for the next play.
wpa_base_indnumericIndicator selecting the wpa_base path for the current play.
wpa_base_nxt_indnumericIndicator selecting the wpa_base_nxt path for the next play.
wpa_change_indnumericIndicator selecting the wpa_change path for the current play.
wpa_change_nxt_indnumericIndicator selecting the wpa_change_nxt path for the next play.
lead_wp_beforenumericWin probability on the next play (lead of wp_before).
lead_pos_team2characterPossession team two plays ahead (lead 2 of pos_team).
rowintegerRow index within the game grouping (sequencing helper).
drive_event_numbernumericSequential event number within the current drive.
lag_play_type2characterPlay type two plays prior (lag 2 of play_type).
lag_play_type3characterPlay type three plays prior (lag 3 of play_type).
lag_play_textcharacterPlay text from the previous play (lag value).
lag_play_text2characterPlay text from two plays prior (lag 2 value).
lead_play_textcharacterPlay text from the next play (lead value).
lag_first_by_penaltynumericFirst-down-by-penalty flag from the previous play (lag value).
lag_first_by_penalty2numericFirst-down-by-penalty flag from two plays prior (lag 2 value).
lag_first_by_yardsnumericFirst-down-by-yards flag from the previous play (lag value).
lag_first_by_yards2numericFirst-down-by-yards flag from two plays prior (lag 2 value).
first_by_penaltynumericBinary flag for a first down earned by penalty on the play.
first_by_yardsnumericBinary flag for a first down earned by yards on the play.
play_after_turnovernumericBinary flag indicating the play immediately following a turnover.
lag_change_of_possnumericchange_of_poss from the previous play (lag value).
lag_change_of_pos_teamnumericchange_of_pos_team from the previous play (lag value).
lag_change_of_pos_team2numericchange_of_pos_team from two plays prior (lag 2 value).
lag_kickoff_playnumerickickoff_play flag from the previous play (lag value).
lag_puntnumericpunt flag from the previous play (lag value).
lag_punt2numericpunt flag from two plays prior (lag 2 value).
lag_scoring_playnumericscoring_play flag from the previous play (lag value).
lag_turnover_vecnumericturnover_vec flag from the previous play (lag value).
lag_downs_turnovernumericdowns_turnover flag from the previous play (lag value).
lag_defense_score_playnumericdefense_score_play flag from the previous play (lag value).
lag_score_diffnumericscore_diff from the previous play (lag value).
lag_offense_playcharacteroffense_play from the previous play (lag value).
lead_offense_playcharacteroffense_play from the next play (lead value).
lead_offense_play2characteroffense_play from two plays ahead (lead 2 value).
lag_pos_score_diffnumericpos_score_diff from the previous play (lag value).
lag_off_timeoutsnumericoffense_timeouts from the previous play (lag value).
lag_def_timeoutsnumericdefense_timeouts from the previous play (lag value).
lag_TimeSecsRem2numericTimeSecsRem from two plays prior (lag 2 value).
lag_TimeSecsRemnumericTimeSecsRem from the previous play (lag value).
lead_TimeSecsRemnumericTimeSecsRem from the next play (lead value).
lead_TimeSecsRem2numericTimeSecsRem from two plays ahead (lead 2 value).
lag_yards_to_goal2integeryards_to_goal from two plays prior (lag 2 value).
lag_yards_to_goalintegeryards_to_goal from the previous play (lag value).
lead_yards_to_goalnumericyards_to_goal from the next play (lead value).
lead_yards_to_goal2integeryards_to_goal from two plays ahead (lead 2 value).
lag_down2integerDown number two plays prior (lag 2 value).
lag_downintegerDown number from the previous play (lag value).
lead_downnumericDown number on the next play (lead value).
lead_down2numericDown number two plays ahead (lead 2 value).
lead_distancenumericDistance to go on the next play (lead value).
lead_distance2integerDistance to go two plays ahead (lead 2 value).
lead_play_type2characterPlay type two plays ahead (lead 2 value).
lead_play_type3characterPlay type three plays ahead (lead 3 value).
lag_ep_before3numericep_before from three plays prior (lag 3 value).
lag_ep_before2numericep_before from two plays prior (lag 2 value).
lag_ep_beforenumericep_before from the previous play (lag value).
lead_ep_beforenumericep_before on the next play (lead value).
lead_ep_before2numericep_before two plays ahead (lead 2 value).
lag_ep_afternumericep_after from the previous play (lag value).
lag_ep_after2numericep_after from two plays prior (lag 2 value).
lag_ep_after3numericep_after from three plays prior (lag 3 value).
lead_ep_afternumericep_after on the next play (lead value).
lead_ep_after2numericep_after two plays ahead (lead 2 value).
play_numberintegerCFBD-supplied play number within the game.
wallclockcharacterISO 8601 wall-clock timestamp from CFBD for the play.
providercharacterSportsbook provider used for spread/over_under joined onto the play.
spreadnumericPre-game point spread from the selected provider.
formatted_spreadcharacterHuman-readable formatted spread string from the betting provider.
over_undernumericPre-game over/under total from the selected provider.
drive_is_home_offenselogicalTRUE when the home team is on offense for the drive.
drive_start_offense_scoreintegerOffense score at the start of the drive.
drive_start_defense_scoreintegerDefense score at the start of the drive.
drive_end_offense_scoreintegerOffense score at the end of the drive.
drive_end_defense_scoreintegerDefense score at the end of the drive.
playnumericBinary flag indicating the row is a counted play (excludes end markers/timeouts/penalties).
eventnumericBinary flag indicating the row is a counted game event (excludes end markers).
game_event_numbernumericSequential event number within the game.
game_row_numberintegerRow index within the game grouping.
half_playnumericBinary flag indicating a counted play within the half.
half_eventnumericBinary flag indicating a counted event within the half.
half_event_numbernumericSequential event number within the half.
half_row_numberintegerRow index within the half grouping.
lag_distance3integerdistance three plays prior (lag 3 value).
lag_distance2integerdistance two plays prior (lag 2 value).
lag_distanceintegerdistance from the previous play (lag value).
lag_yards_gained3integeryards_gained three plays prior (lag 3 value).
lag_yards_gained2integeryards_gained two plays prior (lag 2 value).
lag_yards_gainedintegeryards_gained from the previous play (lag value).
lead_yards_gainedintegeryards_gained on the next play (lead value).
lead_yards_gained2integeryards_gained two plays ahead (lead 2 value).
lag_play_text3characterPlay text from three plays prior (lag 3 value).
lead_play_text2characterPlay text from two plays ahead (lead 2 value).
lead_play_text3characterPlay text from three plays ahead (lead 3 value).
pos_unitcharacterPossession-team unit label (offense or special teams).
def_pos_unitcharacterDefensive possession-team unit label (defense or special teams).
lag_change_of_poss2numericchange_of_poss from two plays prior (lag 2 value).
lag_change_of_poss3numericchange_of_poss from three plays prior (lag 3 value).
lag_change_of_pos_team3numericchange_of_pos_team from three plays prior (lag 3 value).
lag_kickoff_play2numerickickoff_play flag from two plays prior (lag 2 value).
lag_kickoff_play3numerickickoff_play flag from three plays prior (lag 3 value).
lag_punt3numericpunt flag from three plays prior (lag 3 value).
lag_scoring_play2numericscoring_play flag from two plays prior (lag 2 value).
lag_scoring_play3numericscoring_play flag from three plays prior (lag 3 value).
lag_turnover_vec2numericturnover_vec flag from two plays prior (lag 2 value).
lag_turnover_vec3numericturnover_vec flag from three plays prior (lag 3 value).
lag_downs_turnover2numericdowns_turnover flag from two plays prior (lag 2 value).
lag_downs_turnover3numericdowns_turnover flag from three plays prior (lag 3 value).
drive_playnumericBinary flag indicating a counted play within the drive.
drive_eventnumericBinary flag indicating a counted event within the drive.
lag_first_by_penalty3numericfirst_by_penalty flag from three plays prior (lag 3 value).
lag_first_by_yards3numericfirst_by_yards flag from three plays prior (lag 3 value).

Details

 # Get play by play data for 2025 regular season week 1
 cfbd_pbp_data(year = 2025, week = 1, season_type = 'regular', epa_wpa = TRUE)