nhl_draft_prospects: Retrieve metadata on NHL draft prospects from the API

Description Usage Arguments Value Examples

View source: R/nhl_draft_prospects.R

Description

Retrieve metadata on NHL draft prospects from the API

Usage

1
nhl_draft_prospects(prospectIds = NULL)

Arguments

prospectIds

integer(), vector of one or more ids of draft prospects or NULL (default) for all exposed prospects.

Value

data.frame, with information on draft prospects, one row per draft prospect.

Examples

1
2
3
4
5
## Not run: 
  # Get information on current draft prospects
  nhl_draft_prospects()

## End(Not run)

Example output

09:32:25 | 6 | W | nhl_from_json https://statsapi.web.nhl.com/api/v1/draft/prospects error for attempt no: 0 Could not resolve host: statsapi.web.nhl.com
09:32:26 | 6 | W | nhl_from_json https://statsapi.web.nhl.com/api/v1/draft/prospects error for attempt no: 1 Could not resolve host: statsapi.web.nhl.com
09:32:27 | 6 | W | nhl_from_json https://statsapi.web.nhl.com/api/v1/draft/prospects error for attempt no: 2 Could not resolve host: statsapi.web.nhl.com
09:32:27 | 4 | E | The following 1 of 1 url retrievals errored:$ https://statsapi.web.nhl.com/api/v1/draft/prospects 
data frame with 0 columns and 0 rows

nhlapi documentation built on Feb. 20, 2021, 9:06 a.m.