Learn R Programming

hoopR (version 3.1.0)

bref_standings: Basketball-Reference Standings

Description

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().

Usage

bref_standings(season = most_recent_nba_season())

Value

A hoopR_data tibble with one row per team:

col_nametypesdescription
conferencecharacterConference (E or W).
teamcharacterTeam name (with playoff-seed marker stripped).
winsintegerWins.
lossesintegerLosses.
win_loss_pctnumericWin-loss percentage.
gbcharacterGames behind the conference leader.
pts_per_gnumericPoints scored per game.
opp_pts_per_gnumericOpponent points per game.
srsnumericSimple Rating System (point margin + SOS).
playoffslogicalTRUE if the team made the playoffs (* marker).
seasonintegerSeason (echoes the season argument).

Arguments

season

(integer required): Season, in 4-digit ending-year format (e.g. 2024). Defaults to most_recent_nba_season().

See Also

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()

Examples

Run this code
# \donttest{
  try(bref_standings(season = 2024))
# }

Run the code above in your browser using DataLab