Skip to contents

Get ESPN NBA team names and IDs

Usage

espn_nba_teams()

Value

A teams data frame

col_nametypes
team_idinteger
abbreviationcharacter
display_namecharacter
short_namecharacter
mascotcharacter
nicknamecharacter
teamcharacter
colorcharacter
alternate_colorcharacter
logocharacter
logo_darkcharacter
logos_href_3character
logos_href_4character

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_nba_teams())
#> ── ESPN NBA Teams Information from ESPN.com ───────────────────── hoopR 2.0.1 ──
#>  Data updated: 2023-08-29 16:52:57 UTC
#> # A tibble: 30 × 13
#>    team_id abbreviation display_name      short_name mascot nickname team  color
#>      <int> <chr>        <chr>             <chr>      <chr>  <chr>    <chr> <chr>
#>  1       1 ATL          Atlanta Hawks     Hawks      Hawks  Atlanta  Atla… c810…
#>  2       2 BOS          Boston Celtics    Celtics    Celti… Boston   Bost… 0083…
#>  3      17 BKN          Brooklyn Nets     Nets       Nets   Brooklyn Broo… 0000…
#>  4      30 CHA          Charlotte Hornets Hornets    Horne… Charlot… Char… 008c…
#>  5       4 CHI          Chicago Bulls     Bulls      Bulls  Chicago  Chic… ce11…
#>  6       5 CLE          Cleveland Cavali… Cavaliers  Caval… Clevela… Clev… 8600…
#>  7       6 DAL          Dallas Mavericks  Mavericks  Maver… Dallas   Dall… 0064…
#>  8       7 DEN          Denver Nuggets    Nuggets    Nugge… Denver   Denv… 0e22…
#>  9       8 DET          Detroit Pistons   Pistons    Pisto… Detroit  Detr… 1d42…
#> 10       9 GS           Golden State War… Warriors   Warri… Golden … Gold… 1d42…
#> # ℹ 20 more rows
#> # ℹ 5 more variables: alternate_color <chr>, logo <chr>, logo_dark <chr>,
#> #   logos_href_3 <chr>, logos_href_4 <chr>
# }