Skip to contents

Get ESPN NBA team names and IDs

Usage

espn_nba_teams()

Value

A teams data frame

Author

Saiem Gilani

Examples

# \donttest{
  try(espn_nba_teams())
#> ── ESPN NBA Teams Information from ESPN.com ───────────────────── hoopR 1.8.0 ──
#>  Data updated: 2022-06-17 06:26:32 UTC
#> # A tibble: 30 × 12
#>    team_id abbreviation display_name          short_name mascot    team    color
#>    <chr>   <chr>        <chr>                 <chr>      <chr>     <chr>   <chr>
#>  1 1       ATL          Atlanta Hawks         Hawks      Hawks     Atlanta 002B…
#>  2 2       BOS          Boston Celtics        Celtics    Celtics   Boston  0065…
#>  3 17      BKN          Brooklyn Nets         Nets       Nets      Brookl… 0000…
#>  4 30      CHA          Charlotte Hornets     Hornets    Hornets   Charlo… 1D10…
#>  5 4       CHI          Chicago Bulls         Bulls      Bulls     Chicago 0000…
#>  6 5       CLE          Cleveland Cavaliers   Cavaliers  Cavaliers Clevel… 0616…
#>  7 6       DAL          Dallas Mavericks      Mavericks  Mavericks Dallas  0C47…
#>  8 7       DEN          Denver Nuggets        Nuggets    Nuggets   Denver  0860…
#>  9 8       DET          Detroit Pistons       Pistons    Pistons   Detroit FA00…
#> 10 9       GS           Golden State Warriors Warriors   Warriors  Golden… 003d…
#> # … with 20 more rows, and 5 more variables: alternate_color <chr>, logo <chr>,
#> #   logo_dark <chr>, logos_href_3 <chr>, logos_href_4 <chr>
# }