Skip to contents

Get the active NBA player index from RealGM.

Returns RealGM's roster of active NBA players, including position, listed height/weight, age, current team, years of service and pre-draft team – the pre-draft / international detail RealGM is known for.

Requires a headless browser. RealGM is behind a Cloudflare JavaScript challenge, so the realgm_*() functions drive headless Chrome via the optional chromote package (install it and Google Chrome). A plain HTTP client receives an HTTP 403 challenge page.

Usage

realgm_players()

Value

A hoopR_data tibble with one row per active player:

col_nametypesdescription
numberintegerRow number.
playercharacterPlayer name.
poscharacterPosition.
htcharacterListed height.
wtintegerListed weight (lbs).
agenumericAge.
current_teamcharacterCurrent NBA team.
yosintegerYears of service.
pre_draft_teamcharacterPre-draft team / school.
draft_statuscharacterDraft pick / undrafted status.
nationalitycharacterPlayer nationality.

Examples

if (FALSE) { # \dontrun{
  try(realgm_players())
} # }