Skip to contents

Returns the draft prospect listing from the NHL Records API (https://records.nhl.com/site/api/draft-prospect). Optionally filter to a single prospect via prospect_id (switches resource to draft-prospect/{prospect_id}).

Usage

nhl_records_draft_prospect(prospect_id = NULL, cayenne_exp = NULL)

Arguments

prospect_id

Optional integer prospect ID. If supplied, the resource becomes draft-prospect/{prospect_id}.

cayenne_exp

Optional Cayenne filter expression string. Ignored when prospect_id is supplied.

Value

A data frame (fastRhockey_data) with the following columns:

col_nametypesdescription
idintegerUnique prospect record identifier.
birth_citycharacterProspect birth city.
birth_country3codecharacterProspect birth country three-letter code.
birth_datecharacterProspect date of birth.
birth_state_prov_codecharacterProspect birth state/province code.
category_idintegerProspect category identifier.
created_oncharacterRecord creation timestamp.
cs_player_idintegerCentral Scouting player identifier.
draft_status_codecharacterDraft eligibility status code.
ep_player_idintegerEliteProspects player identifier.
first_namecharacterProspect first name.
headshot_idintegerHeadshot image identifier.
heightintegerProspect height (inches).
hometowncharacterProspect hometown.
last_club_namecharacterMost recent club name.
last_league_abbrcharacterMost recent league abbreviation.
last_namecharacterProspect last name.
nationality_codecharacterProspect nationality code.
news_articlescharacterAssociated news articles.
playeridintegerUnique player identifier.
position_desccharacterPlayer position description.
profilecharacterProspect profile text.
quotescharacterQuotes about the prospect.
scouting_reportcharacterScouting report text.
shoots_catchescharacterShooting/catching handedness.
stats_textcharacterStatistical summary text.
videocharacterAssociated video content.
weightintegerProspect weight (pounds).

Examples

if (FALSE) { # interactive()
# \donttest{
  try(nhl_records_draft_prospect())
# }
}