Skip to contents

Get the results of a past NBA draft from RealGM.

One row per selection (rounds 1 and 2, labelled by round) plus the listed undrafted players (round = NA), including pre-draft team / international club, age, years of service and nationality.

Requires a headless browser (see realgm_players()).

Usage

realgm_draft(year = most_recent_nba_season() - 1L)

Arguments

year

Draft year (the calendar year the draft was held). Defaults to the most recently completed draft (most_recent_nba_season() - 1).

Value

A hoopR_data tibble carrying draft_year and round columns:

col_nametypesdescription
pickintegerOverall pick number (NA for undrafted).
playercharacterPlayer name.
teamcharacterDrafting team abbreviation.
draft_tradescharacterDraft-night trade note, if any.
poscharacterPosition.
htcharacterListed height.
wtintegerListed weight (lbs).
agenumericAge at draft.
yosintegerYears of service since.
pre_draft_teamcharacterPre-draft team / school / club.
classcharacterCollege class / draft eligibility note.
nationalitycharacterPlayer nationality.
roundintegerDraft round (1, 2, or NA undrafted).
draft_yearnumericDraft year (echoes year).

Examples

if (FALSE) { # \dontrun{
  try(realgm_draft(year = 2020))
} # }