Skip to contents

Gets player info associated by play

Usage

cfbd_play_stats_player(
  year = NULL,
  week = NULL,
  team = NULL,
  game_id = NULL,
  athlete_id = NULL,
  stat_type_id = NULL,
  season_type = "both"
)

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

game_id

(Integer optional): Game ID filter for querying a single game Can be found using the cfbd_game_info() function

athlete_id

(Integer optional): Athlete ID filter for querying a single athlete Can be found using the cfbd_player_info() function.

stat_type_id

(Integer optional): Stat Type ID filter for querying a single stat type Can be found using the cfbd_play_stats_types() function

season_type

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

Value

cfbd_play_stats_player() - A data frame with 66 variables:

col_nametypesdescription
play_idcharacterCFBD play identifier the stat is attributed to.
game_idintegerCFBD game identifier the play belongs to.
seasonintegerFour-digit season year (e.g. 2024).
weekintegerSeason week number (1-15 regular season; 1 = postseason/bowl week).
opponentcharacterFull name of the opponent on the play.
team_scoreintegerOffense team score at the time of the play.
opponent_scoreintegerDefense / opponent team score at the time of the play.
drive_idcharacterCFBD drive identifier the play belongs to.
periodintegerGame period / quarter of the play (1-4 regulation, 5+ overtime).
yards_to_goalintegerDistance in yards from the offense's spot to the opponent's goal line (0-100).
downintegerDown of the play (1-4).
distanceintegerYards to gain for a first down (or to the goal line in goal-to-go situations).
reception_player_idcharacterCFBD athlete_id of the receiver credited with a reception.
reception_playercharacterName of the receiver credited with a reception.
reception_ydsintegerReception yards gained on the play.
completion_player_idcharacterCFBD athlete_id of the passer credited with a completion.
completion_playercharacterName of the passer credited with a completion.
completion_ydsintegerPassing yards gained on the completion.
rush_player_idcharacterCFBD athlete_id of the player credited with a rush attempt.
rush_playercharacterName of the player credited with a rush attempt.
rush_ydsintegerRushing yards gained on the play.
interception_player_idcharacterCFBD athlete_id of the defender credited with an interception.
interception_playercharacterName of the defender credited with an interception.
interception_statintegerInterception stat value reported by CFBD (typically 1 per INT).
interception_thrown_player_idcharacterCFBD athlete_id of the passer charged with the interception.
interception_thrown_playercharacterName of the passer charged with the interception.
interception_thrown_statintegerInterception-thrown stat value reported by CFBD (typically 1 per INT thrown).
touchdown_player_idcharacterCFBD athlete_id of the player credited with the touchdown.
touchdown_playercharacterName of the player credited with the touchdown.
touchdown_statintegerTouchdown stat value reported by CFBD (typically 1 per TD scored).
incompletion_player_idcharacterCFBD athlete_id of the targeted receiver on an incompletion.
incompletion_playercharacterName of the targeted receiver on an incompletion.
incompletion_statintegerIncompletion stat value reported by CFBD (typically 1 per incompletion).
target_player_idcharacterCFBD athlete_id of the targeted receiver on a pass.
target_playercharacterName of the targeted receiver on a pass.
target_statintegerTarget stat value reported by CFBD (typically 1 per target).
fumble_recovered_player_idlogicalCFBD athlete_id of the player recovering the fumble.
fumble_recovered_playerlogicalName of the player recovering the fumble.
fumble_recovered_statlogicalFumble-recovered stat value reported by CFBD (typically 1 per recovery).
fumble_forced_player_idlogicalCFBD athlete_id of the defender credited with forcing the fumble.
fumble_forced_playerlogicalName of the defender credited with forcing the fumble.
fumble_forced_statlogicalFumble-forced stat value reported by CFBD (typically 1 per forced fumble).
fumble_player_idlogicalCFBD athlete_id of the player who fumbled.
fumble_playerlogicalName of the player who fumbled.
fumble_statlogicalFumble stat value reported by CFBD (typically 1 per fumble).
sack_player_idcharacterComma-separated CFBD athlete_id(s) of the sacking defender(s).
sack_playercharacterComma-separated name(s) of the sacking defender(s).
sack_statintegerSack stat value reported by CFBD (sack credit can be split between defenders).
sack_taken_player_idcharacterCFBD athlete_id of the QB charged with taking the sack.
sack_taken_playercharacterName of the QB charged with taking the sack.
sack_taken_statintegerSack-taken stat value reported by CFBD (typically 1 per sack taken).
pass_breakup_player_idlogicalCFBD athlete_id of the defender credited with the pass breakup (PBU).
pass_breakup_playerlogicalName of the defender credited with the pass breakup (PBU).
pass_breakup_statlogicalPass breakup (PBU) stat value reported by CFBD (typically 1 per PBU).
field_goal_attempt_player_idcharacterCFBD athlete_id of the kicker attempting the field goal.
field_goal_attempt_playercharacterName of the kicker attempting the field goal.
field_goal_attempt_statintegerField goal attempt distance in yards reported by CFBD.
field_goal_made_player_idcharacterCFBD athlete_id of the kicker on a made field goal.
field_goal_made_playercharacterName of the kicker on a made field goal.
field_goal_made_statintegerMade-field-goal distance in yards reported by CFBD.
field_goal_missed_player_idcharacterCFBD athlete_id of the kicker on a missed field goal.
field_goal_missed_playercharacterName of the kicker on a missed field goal.
field_goal_missed_statintegerMissed-field-goal distance in yards reported by CFBD.
field_goal_blocked_player_idcharacterCFBD athlete_id of the defender credited with blocking the field goal.
field_goal_blocked_playercharacterName of the defender credited with blocking the field goal.
field_goal_blocked_statintegerBlocked-field-goal distance in yards reported by CFBD.

Examples

# \donttest{
  try(cfbd_play_stats_player(game_id = 401628414))
#> ── Play-level player data from CollegeFootballData.com ─────── cfbfastR 2.3.0 ──
#>  Data updated: 2026-06-24 02:04:37 UTC
#> # A tibble: 132 × 70
#>      game_id season  week team     conference opponent team_score opponent_score
#>        <int>  <int> <int> <chr>    <chr>      <chr>         <int>          <int>
#>  1 401628414   2024    11 Ole Miss SEC        Georgia           0              0
#>  2 401628414   2024    11 Georgia  SEC        Ole Miss          0              0
#>  3 401628414   2024    11 Georgia  SEC        Ole Miss          0              0
#>  4 401628414   2024    11 Georgia  SEC        Ole Miss          0              0
#>  5 401628414   2024    11 Georgia  SEC        Ole Miss          0              0
#>  6 401628414   2024    11 Georgia  SEC        Ole Miss          0              0
#>  7 401628414   2024    11 Georgia  SEC        Ole Miss          0              0
#>  8 401628414   2024    11 Georgia  SEC        Ole Miss          0              0
#>  9 401628414   2024    11 Georgia  SEC        Ole Miss          0              0
#> 10 401628414   2024    11 Georgia  SEC        Ole Miss          7              0
#> # ℹ 122 more rows
#> # ℹ 62 more variables: drive_id <chr>, play_id <chr>, period <int>,
#> #   clock_minutes <int>, clock_seconds <int>, yards_to_goal <int>, down <int>,
#> #   distance <int>, reception_player_id <chr>, reception_player <chr>,
#> #   reception_yds <int>, completion_player_id <chr>, completion_player <chr>,
#> #   completion_yds <int>, rush_player_id <chr>, rush_player <chr>,
#> #   rush_yds <int>, interception_player_id <chr>, interception_player <chr>, …
  try(cfbd_play_stats_player(year = 2025, week = 1))
#> ── Play-level player data from CollegeFootballData.com ─────── cfbfastR 2.3.0 ──
#>  Data updated: 2026-06-24 02:04:45 UTC
#> # A tibble: 1,306 × 70
#>      game_id season  week team    conference opponent  team_score opponent_score
#>        <int>  <int> <int> <chr>   <chr>      <chr>          <int>          <int>
#>  1 401752665   2025     1 Alabama SEC        Florida …          0              0
#>  2 401752665   2025     1 Alabama SEC        Florida …          0              0
#>  3 401752665   2025     1 Alabama SEC        Florida …          0              0
#>  4 401752665   2025     1 Alabama SEC        Florida …          0              0
#>  5 401752665   2025     1 Alabama SEC        Florida …          0              0
#>  6 401752665   2025     1 Alabama SEC        Florida …          0              0
#>  7 401752665   2025     1 Alabama SEC        Florida …          0              0
#>  8 401752665   2025     1 Alabama SEC        Florida …          0              0
#>  9 401752665   2025     1 Alabama SEC        Florida …          0              0
#> 10 401752665   2025     1 Alabama SEC        Florida …          0              0
#> # ℹ 1,296 more rows
#> # ℹ 62 more variables: drive_id <chr>, play_id <chr>, period <int>,
#> #   clock_minutes <int>, clock_seconds <int>, yards_to_goal <int>, down <int>,
#> #   distance <int>, reception_player_id <chr>, reception_player <chr>,
#> #   reception_yds <int>, completion_player_id <chr>, completion_player <chr>,
#> #   completion_yds <int>, rush_player_id <chr>, rush_player <chr>,
#> #   rush_yds <int>, interception_player_id <chr>, interception_player <chr>, …
# }