Learn R Programming

hoopR (version 3.1.0)

bref_awards: Basketball-Reference Awards Voting

Description

Get end-of-season award voting from Basketball-Reference.

Returns the voting results for the major end-of-season awards (MVP, Rookie of the Year, Defensive Player of the Year, Sixth Man, Most Improved, Clutch Player, Coach of the Year) in one tidy tibble, one row per candidate per award. No API key is required. Basketball-Reference rate-limits aggressive scraping (~20 requests/minute) -- space repeated calls with Sys.sleep().

Usage

bref_awards(season = most_recent_nba_season())

Value

A hoopR_data tibble with one row per award candidate:

col_nametypesdescription
awardcharacterAward slug (mvp, roy, dpoy, smoy, mip, clutch_poy, coy).
rankintegerFinish in the voting.
playercharacterPlayer (or coach) name.
ageintegerAge.
teamcharacterTeam abbreviation.
votes_firstnumericFirst-place votes.
points_wonnumericVoting points won.
points_maxnumericMaximum possible voting points.
award_sharenumericShare of the maximum voting points.
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_draft(), bref_injuries(), bref_player_bios(), bref_player_game_log(), bref_players_stats(), bref_standings(), bref_team_roster(), bref_teams_stats()

Examples

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

Run the code above in your browser using DataLab