Skip to contents

Loads every player id another source uses for an ESPN college football athlete, with the ESPN team the athlete was on and the seasons the id held. Use it to map an NCAA (stats.ncaa.org), CBS, Yahoo or Fox player id onto the ESPN athlete_id. stats.ncaa.org roster ids are new every season, so an NCAA player has one row per season. Unmatched provider ids are not included. Published to the cfb_groups release tag on the sportsdataverse-data repo.

See load_cfb_team_aliases() for team ids and names.

Usage

load_cfb_player_aliases(..., dbConnection = NULL, tablename = NULL)

Arguments

...

Additional arguments passed to an underlying function that writes the 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 with one row per player alias, or NULL after appending the rows to tablename when dbConnection and tablename are both given.

col_nametypesdescription
leaguecharacterLeague key, always cfb.
athlete_idcharacterESPN athlete id.
athlete_id_sourcecharacterId system of athlete_id: espn.
sourcecharacterSource of the player id: ncaa, cbs, yahoo or fox.
source_player_idcharacterThe source's own player id.
team_idcharacterESPN team id of the team the athlete was on when matched.
source_team_idcharacterThe source's own team id when it gives one (the season's stats.ncaa.org team id), else NA.
valid_fromintegerFirst season (fall year) the id is on that team, inclusive.
valid_tointegerLast season (fall year) the id is on that team, inclusive; a gap or a change of match method splits the window into two rows.
match_methodcharacterHow the id was matched: the source leg's own method (NCAA name_jersey, name, last_jersey, jaro_winkler; CFB rosters name), crosswalk (a leg that names none), propagated (carried from the same id's match in another season) or override (a hand-verified fix).
match_confidencenumericThe leg's own confidence where it gives one (the lowest in the window; NCAA tiers score 1, 0.95, 0.9 and 0.85), else NA.
evidencecharacterThe asset or file the row came from.

Author

Saiem Gilani

Examples

# \donttest{
  try(load_cfb_player_aliases())
#> ── college football provider player id aliases from the SportsDataverse data rep
#> ℹ Data updated: 2026-11-26 22:49:08 UTC
#> # A tibble: 574,745 × 12
#>    league athlete_id athlete_id_source source    source_player_id team_id
#>    <chr>  <chr>      <chr>             <chr>     <chr>            <chr>  
#>  1 cfb    -1000047   espn              on3       122839           2005   
#>  2 cfb    -1000047   espn              sports247 46052204         2005   
#>  3 cfb    -1000117   espn              on3       65257            2005   
#>  4 cfb    -1000117   espn              sports247 92789            2005   
#>  5 cfb    -1000177   espn              on3       29533            2005   
#>  6 cfb    -1000177   espn              sports247 38260            2005   
#>  7 cfb    -1000359   espn              on3       98300            2006   
#>  8 cfb    -1000359   espn              sports247 46081010         2006   
#>  9 cfb    -1000379   espn              on3       119737           2006   
#> 10 cfb    -1000379   espn              sports247 46050769         2006   
#> # ℹ 574,735 more rows
#> # ℹ 6 more variables: source_team_id <chr>, valid_from <int>, valid_to <int>,
#> #   match_method <chr>, match_confidence <dbl>, evidence <chr>
# }