nhl_divisions: Retrieve metadata on NHL divisions from the API

Description Usage Arguments Value Examples

View source: R/nhl_divisions.R

Description

Retrieve metadata on NHL divisions from the API

Usage

1
nhl_divisions(divisionIds = NULL)

Arguments

divisionIds

integer(), ids of the divisions or NULL (default) for all divisions. As of end of 2019, the valid division ids seem to be in the 1:25 range.

Value

data.frame, with information on divisions, one row per division.

Examples

1
2
3
4
5
6
7
8
## Not run: 
  # Get information on all divisions
  nhl_divisions()

  # Get information on 2 selected divisions
  nhl_divisions(15:16)

## End(Not run)

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