
Load college football provider player id aliases from the SportsDataverse data repo
Source:R/load_cfb_groups.R
load_cfb_player_aliases.RdLoads 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.
Arguments
- ...
Additional arguments passed to an underlying function that writes the data into a database.
- dbConnection
A
DBIConnectionobject, as returned byDBI::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_name | types | description |
| league | character | League key, always cfb. |
| athlete_id | character | ESPN athlete id. |
| athlete_id_source | character | Id system of athlete_id: espn. |
| source | character | Source of the player id: ncaa, cbs, yahoo or fox. |
| source_player_id | character | The source's own player id. |
| team_id | character | ESPN team id of the team the athlete was on when matched. |
| source_team_id | character | The source's own team id when it gives one (the season's stats.ncaa.org team id), else NA. |
| valid_from | integer | First season (fall year) the id is on that team, inclusive. |
| valid_to | integer | Last 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_method | character | How 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_confidence | numeric | The 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. |
| evidence | character | The asset or file the row came from. |
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>
# }