nhl_get_players: Function to return a list of all players and goals on...

Description Usage Arguments Examples

View source: R/nhl_get_player_stats.R

Description

Function to return a list of all players and goals on specified teams in a specified season, along with #' details and summary statistics.

Usage

1
nhl_get_players(teams = NULL, season = get_this_season())

Arguments

teams

a vector of team identifiers, either name, id, or abbreviation.

season

season (e.g. 20052006). defaults to current season.

Examples

1
2
3
4
5
6
7
8
9
buf_and_nyi <- nhl_get_players(teams = c('buf', 'nyi'))

head(buf_and_nyi$goalies)
head(buf_and_nyi$players)

buf_and_nyi_06 <- nhl_get_players(teams = c('buf', 'nyi'), season = 20062007)

head(buf_and_nyi_06$goalies)
head(buf_and_nyi_06$players)

alexpavlakis/nhl documentation built on May 18, 2019, 2:35 p.m.