getTeam: Get Team

Description Usage Arguments Value Examples

Description

Get the NHL teams, including historical teams. Or, get one single team

Usage

1
getTeam(team = NULL, info = NULL, season = NULL)

Arguments

team

Optional, get specific team information.

info

Optional, if team is supplied, get specific info about a team. Options are:

person.names

Basic roster info

team.schedule.next

Returns details of the upcomgin game for a team

team.schedule.previous

Returns details of a teams' last game

season

Optional, if looking for season specific information on team

Value

The API output of teams

Examples

1
2
3
4
5
#See info on Washing Capitals (ID = 15)
caps <- getTeam(15)

#See the Capitals' past game
caps_last <- getTeam(15, info = 'team.schedule.previous')

pbulsink/nhlRapi documentation built on June 27, 2019, 6:35 p.m.