get_draft_class: Get draft classes

View source: R/get_draft_class.R

get_draft_classR Documentation

Get draft classes

Description

Get all selections for any single NHL draft class back to 1963

Usage

get_draft_class(
  draft_year = as.numeric(format(Sys.Date() - 181, "%Y")),
  player_details = FALSE
)

Arguments

draft_year

Draft year to scrape

player_details

If true, returns more detailed data on each prospect

Value

A tibble containing all selections for the supplied draft year.

Basic draft class variables

  • Draft year

  • Round

  • Overall Pick #

  • Round Pick #

  • Drafting team

  • Player ID

  • Player name

  • Player link

Detailed draft class variables

  • Player birthdate

  • Player birthplace & nationality

  • Player height & weight

  • Player shoots/catches

  • Player position

  • Player amateur team & league

Examples

## Not run: 
draft_2022 <- get_draft_class(draft_year = 2022, player_details = TRUE)

## End(Not run)

hockeyR documentation built on Oct. 12, 2022, 5:07 p.m.