drafts: NBA drafts

View source: R/drafts.R

draftsR Documentation

NBA drafts

Description

NBA draft data for specified seasons

Usage

drafts(draft_years = 1947:2018, nest_data = F, return_message = T)

Arguments

draft_years

vector of draft years

nest_data

if TRUE returns nested data frame

return_message

if TRUE returns message

Value

a 'tibble'

See Also

Other draft: draft_combines(), nbadraftnet_mock_drafts()

Other teams: franchise_leaders(), seasons_rosters(), teams_players_stats(), teams_rankings()

Examples

library(dplyr)
df_drafts <-
drafts(draft_years = 1983:2018, nest_data = FALSE, return_message = TRUE)

## Where do top 5 picks since 1983 come from?

df_drafts %>%
filter(numberPickOverall <= 5) %>%
count(nameOrganizationFrom, sort = T)

abresler/nbastatR documentation built on Nov. 9, 2023, 2:33 p.m.