Skip to contents

A tidy team dictionary (id, abbreviation, name, conference, division, logo URL) derived from the stats.nba.com player index plus a static conference/division map.

Usage

nba_team_dict(season = year_to_season(most_recent_nba_season() - 2), ...)

Arguments

season

Season in "YYYY-YY" form. Defaults to the previous season, year_to_season(most_recent_nba_season() - 2) (the current season rolls over in October).

...

Additional arguments passed to nba_playerindex() (e.g. proxy).

Value

A hoopR_data tibble with one row per team:

col_nametypesdescription
team_idcharacterTeam id.
team_abbreviationcharacterTeam abbreviation.
team_citycharacterTeam city / region.
team_namecharacterTeam nickname.
team_fullcharacterFull team name.
conferencecharacterConference (Eastern / Western).
divisioncharacterDivision.
logo_urlcharacterNBA CDN primary logo URL.

See also

Examples

if (FALSE) { # interactive()
# \donttest{
  try(nba_team_dict())
# }
}