nhl_get_team_stats: Function to return stats for a team and a season

Description Usage Arguments Examples

View source: R/nhl_get_team_stats.R

Description

Function to return stats for a team and a season

Usage

1

Arguments

team

team identifier, either name, id, or abbreviation.

season

vector of seasons (e.g. 20052006). defaults to current season.

Examples

1
2
3
4
5
6
7
8
buf_06 <- nhl_get_team_stats(team = 'Buffalo Sabres', season = 20062007)

head(buf_06$stats)
head(buf_06$ranks)

seasons <- paste0(seq(1990, 2018, 1), seq(1991, 2019, 1))
buf_all <- nhl_get_team_stats(team = 'Buffalo Sabres', season = seasons)
buf_all$ranks

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