Skip to contents

Loads season-level game rosters – one row per player-game with team, position, and status, keyed by ESPN athlete id. Published to the espn_cfb_game_rosters release tag on the sportsdataverse-data repo.

Usage

load_espn_cfb_game_rosters(
  seasons = most_recent_cfb_season(),
  ...,
  dbConnection = NULL,
  tablename = NULL
)

Arguments

seasons

A vector of 4-digit years associated with given college football seasons. Published coverage runs 2004 through the most recent season. Pass seasons = TRUE for every published season. (Min: 2004)

...

Additional arguments passed to an underlying function that writes the season data into a database.

dbConnection

A DBIConnection object, as returned by DBI::dbConnect()

tablename

The name of the data table within the database

Value

Returns a cfbfastR_data tibble.

col_nametypesdescription
athlete_idinteger
athlete_uidcharacter
athlete_guidcharacter
athlete_typecharacter
first_namecharacter
last_namecharacter
full_namecharacter
athlete_display_namecharacter
short_namecharacter
weightdouble
display_weightcharacter
heightdouble
display_heightcharacter
slugcharacter
jerseycharacter
linkedlogical
activelogical
alternate_ids_sdrcharacter
birth_place_citycharacter
birth_place_statecharacter
birth_place_countrycharacter
birth_country_alternate_idcharacterESPN's internal alternate identifier for the athlete's birth country, paired with birth_place_country and the flag fields.
birth_country_abbreviationcharacter
headshot_hrefcharacter
headshot_altcharacter
hand_typecharacter
hand_abbreviationcharacter
hand_display_valuecharacter
flag_hrefcharacterURL of the birth-country flag image hosted on ESPN's CDN under teamlogos/countries.
flag_altcharacterAlt text ESPN attaches to the birth-country flag image, which is the country's name spelled out.
flag_relcharacterStringified relationship list ESPN ships with the flag image; the only non-null value observed is a single country-flag entry.
experience_yearsdouble
experience_display_valuecharacter
experience_abbreviationcharacter
status_idcharacter
status_namecharacter
status_typecharacter
status_abbreviationcharacter
middle_namecharacter
starterlogical
jersey_rightcharacter
validlogical
did_not_playlogical
display_namecharacter
athlete_hrefcharacterESPN Core v2 API reference URL for the athlete's season record, ending in the athlete id.
position_hrefcharacterESPN Core v2 API reference URL for the position resource ESPN lists the athlete at.
statistics_hrefcharacterESPN Core v2 API reference URL for this athlete's stat line in this game, null for the roughly 71 percent of listed players who recorded no stats.
team_idinteger
orderinteger
home_awaycharacter
winnerlogical
team_guidcharacter
team_uidcharacter
team_slugcharacter
team_locationcharacter
team_namecharacter
team_nicknamecharacter
team_abbreviationcharacter
team_display_namecharacter
team_short_display_namecharacter
team_colorcharacter
team_alternate_colorcharacter
is_activelogical
is_all_starlogical
team_alternate_ids_sdrcharacterThe team's Sportradar alternate identifier, which maps one-to-one with team_id.
logo_hrefcharacter
logo_dark_hrefcharacter
game_idinteger
seasoninteger
weekinteger
agedouble
date_of_birthcharacter
citizenshipcharacter
draft_display_textcharacter
draft_rounddouble
draft_yeardouble
draft_selectiondouble
draft_team_hrefcharacterAPI link to the team that drafted the player. Sparse: absent entirely from the 2023 and 2024 assets and populated on only a small share of 2025 rows.

Author

Saiem Gilani

Examples

# \donttest{
  try(load_espn_cfb_game_rosters(2004))
#> ── ESPN college football game rosters from the SportsDataverse data repo ───────
#>  Data updated: 2026-09-10 05:49:51 UTC
#> # A tibble: 43,010 × 72
#>    athlete_id athlete_uid        athlete_guid  athlete_type first_name last_name
#>         <int> <chr>              <chr>         <chr>        <chr>      <chr>    
#>  1     101304 s:20~l:23~a:101304 8eca16e2-da8… football     Kevin      Lewis    
#>  2     116150 s:20~l:23~a:116150 f60e5508-361… football     Eric       Green    
#>  3     116152 s:20~l:23~a:116152 bb556416-79c… football     Vincent    Fuller   
#>  4     116153 s:20~l:23~a:116153 bd2359a6-9d8… football     Richard    Johnson  
#>  5     116157 s:20~l:23~a:116157 3f16ca2f-315… football     Vinnie     Burns    
#>  6     116161 s:20~l:23~a:116161 e93576eb-b89… football     Brandon    Manning  
#>  7     116164 s:20~l:23~a:116164 332f1091-b1e… football     Travis     Conway   
#>  8     116168 s:20~l:23~a:116168 aaa00691-98d… football     Jared      Mazzetta 
#>  9     116171 s:20~l:23~a:116171 f65bc797-f03… football     Jim        Davis    
#> 10     116172 s:20~l:23~a:116172 32948407-a0b… football     James      Anderson 
#> # ℹ 43,000 more rows
#> # ℹ 66 more variables: full_name <chr>, athlete_display_name <chr>,
#> #   short_name <chr>, weight <dbl>, display_weight <chr>, height <dbl>,
#> #   display_height <chr>, age <dbl>, date_of_birth <chr>, slug <chr>,
#> #   jersey <chr>, linked <lgl>, active <lgl>, alternate_ids_sdr <chr>,
#> #   birth_place_city <chr>, birth_place_state <chr>, experience_years <dbl>,
#> #   experience_display_value <chr>, experience_abbreviation <chr>, …
# }