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

col_nametypes
team_idinteger
teamcharacter
avgpointsagainstnumeric
avgpointsfornumeric
clinchernumeric
differentialnumeric
divisionwinpercentnumeric
gamesbehindnumeric
leaguewinpercentnumeric
lossesnumeric
playoffseednumeric
streaknumeric
winpercentnumeric
winsnumeric
leaguestandingscharacter
homecharacter
roadcharacter
vsdivcharacter
vsconfcharacter
lasttengamescharacter

Examples

# \donttest{
  try(espn_nba_standings(year = 2021))
#> ── ESPN NBA Standings Information from ESPN.com ───────────────── hoopR 2.1.0 ──
#>  Data updated: 2023-11-28 22:10:06 UTC
#> # A tibble: 30 × 21
#>    team_id team              avgpointsagainst avgpointsfor clincher differential
#>  *   <int> <chr>                        <dbl>        <dbl>    <dbl>        <dbl>
#>  1      26 Utah Jazz                     107.         116.        5         9.2 
#>  2      21 Phoenix Suns                  109.         115.        2         5.8 
#>  3      20 Philadelphia 76e…             108.         114.        3         5.5 
#>  4      17 Brooklyn Nets                 114.         119.        1         4.5 
#>  5       7 Denver Nuggets                110.         115.        1         5   
#>  6      12 LA Clippers                   108.         114.        1         6.2 
#>  7      15 Milwaukee Bucks               114.         120.        2         5.90
#>  8       6 Dallas Mavericks              110.         112.        2         2.2 
#>  9      13 Los Angeles Lake…             107.         110.        7         2.7 
#> 10      22 Portland Trail B…             114.         116.        1         1.8 
#> # ℹ 20 more rows
#> # ℹ 15 more variables: divisionwinpercent <dbl>, gamesbehind <dbl>,
#> #   leaguewinpercent <dbl>, losses <dbl>, playoffseed <dbl>,
#> #   pointdifferential <chr>, streak <dbl>, winpercent <dbl>, wins <dbl>,
#> #   leaguestandings <chr>, home <chr>, road <chr>, vsdiv <chr>, vsconf <chr>,
#> #   lasttengames <chr>
# }