View source: R/bref_standings.R
| bref_standings | R Documentation |
Get end-of-season conference standings from Basketball-Reference.
No API key is required. Basketball-Reference rate-limits aggressive scraping
(~20 requests/minute) – space repeated calls with Sys.sleep().
bref_standings(season = most_recent_nba_season())
season |
(integer required): Season, in 4-digit ending-year format
(e.g. |
A hoopR_data tibble with one row per team:
| col_name | types | description |
| conference | character | Conference (E or W). |
| team | character | Team name (with playoff-seed marker stripped). |
| wins | integer | Wins. |
| losses | integer | Losses. |
| win_loss_pct | numeric | Win-loss percentage. |
| gb | character | Games behind the conference leader. |
| pts_per_g | numeric | Points scored per game. |
| opp_pts_per_g | numeric | Opponent points per game. |
| srs | numeric | Simple Rating System (point margin + SOS). |
| playoffs | logical | TRUE if the team made the playoffs (* marker). |
| season | integer | Season (echoes the season argument). |
Other Basketball-Reference Functions:
bref_awards(),
bref_draft(),
bref_injuries(),
bref_player_bios(),
bref_player_game_log(),
bref_players_stats(),
bref_team_roster(),
bref_teams_stats()
try(bref_standings(season = 2024))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.