Skip to contents

Get ESPN NBA's Standings

Usage

espn_nba_standings(year)

Arguments

year

Either numeric or character (YYYY)

Value

A standings data frame

Examples

# \donttest{
try(espn_nba_standings(year = 2021))
#> ── ESPN NBA Standings Information from ESPN.com ───────────────── hoopR 1.8.0 ──
#>  Data updated: 2022-06-17 06:26:30 UTC
#> # A tibble: 30 × 20
#>    team_id team     playoffseed wins  losses winpercent gamesbehind avgpointsfor
#>    <chr>   <chr>    <chr>       <chr> <chr>  <chr>      <chr>       <chr>       
#>  1 26      Utah Ja… 1           52    20     0.7222222… 0           116.4166641…
#>  2 21      Phoenix… 2           51    21     0.7083333… 1           115.2777786…
#>  3 20      Philade… 1           49    23     0.6805555… 3           113.6388854…
#>  4 17      Brookly… 2           48    24     0.6666666… 4           118.5694427…
#>  5 7       Denver … 3           47    25     0.6527777… 5           115.0555572…
#>  6 12      LA Clip… 4           47    25     0.6527777… 5           114.0138854…
#>  7 15      Milwauk… 3           46    26     0.6388888… 6           120.125     
#>  8 6       Dallas … 5           42    30     0.5833333… 10          112.4166641…
#>  9 13      Los Ang… 7           42    30     0.5833333… 10          109.5416641…
#> 10 22      Portlan… 6           42    30     0.5833333… 10          116.1111145…
#> # … with 20 more rows, and 12 more variables: avgpointsagainst <chr>,
#> #   differential <chr>, streak <chr>, clincher <chr>, divisionwinpercent <chr>,
#> #   leaguewinpercent <chr>, leaguestandings <chr>, home <chr>, road <chr>,
#> #   vsdiv <chr>, vsconf <chr>, lasttengames <chr>
# }