Learn R Programming

nhlscraper (version 0.2.0)

get_draft_rankings: Get draft rankings by year and player-type

Description

get_draft_rankings() retrieves information on each prospect for a given set of year and player_type, including but not limited to their name, midterm and final ranks, position, bio-metrics, and birth date and location.

Usage

get_draft_rankings(year = get_season_now()$seasonId%/%10000, player_type = 1)

Value

tibble with one row per player

Arguments

year

integer in YYYY

player_type

integer where 1=North American Skaters, 2=International Skaters, 3=North American Goalies, and 4=International Goalies

Examples

Run this code
draft_rankings_2025_1 <- get_draft_rankings(year=2025, player_type=1)

Run the code above in your browser using DataLab