Learn R Programming

wehoop (version 3.0.0)

wnba_team_crosswalk: Get the WNBA cross-source team crosswalk

Description

Build a wide, one-row-per-team-per-season crosswalk linking ESPN, the WNBA Stats API, and Fox Sports team identities, keyed on espn_team_id. Yahoo columns are placeholders (NA) until that source is implemented.

Usage

wnba_team_crosswalk(season = most_recent_wnba_season(), .schedule = NULL)

Value

A wehoop_data tibble, one row per team:

col_nametypesdescription
seasonintegerSeason year.
espn_team_idintegerESPN team id (canonical key).
espn_abbreviationcharacterESPN abbreviation.
espn_display_namecharacterESPN display name.
espn_short_namecharacterESPN short name.
espn_locationcharacterESPN team location.
espn_mascotcharacterESPN team mascot/nickname.
wnba_team_idcharacterWNBA Stats team id.
wnba_team_tricodecharacterWNBA Stats tricode.
wnba_team_namecharacterWNBA Stats team name.
wnba_team_citycharacterWNBA Stats team city.
wnba_team_slugcharacterWNBA Stats team slug.
fox_team_idcharacterFox Bifrost team id.
fox_team_namecharacterFox team name.
yahoo_team_idcharacterYahoo team id (NA placeholder).
yahoo_team_abbreviationcharacterYahoo abbreviation (NA placeholder).
yahoo_team_namecharacterYahoo team name (NA placeholder).
match_methodcharacterHow the row was matched.
match_confidencenumericMatch confidence (1 for deterministic).

Arguments

season

Season year (numeric). Defaults to the most recent WNBA season.

.schedule

Internal. An already-fetched wnba_schedule() frame, supplied by wnba_schedule_crosswalk() to avoid a duplicate CDN request. Leave NULL.

See Also

Other WNBA Crosswalk Functions: load_wnba_team_crosswalk(), wnba_player_crosswalk(), wnba_schedule_crosswalk()

Examples

Run this code
# \donttest{
  try(wnba_team_crosswalk(season = 2024))
# }

Run the code above in your browser using DataLab