nhl_players_allseasons: Retrieve all seasons statistics for players

Description Usage Arguments Value Examples

View source: R/nhl_players_seasons.R

Description

Retrieve all seasons statistics for players

Usage

1
nhl_players_allseasons(playerNames, playerIds = NULL)

Arguments

playerNames

character(), vector of one or more player names. Not case sensitive for convenience.

playerIds

integer(), vector of one or more ids of the players. The ids correspond to the ids expected by the NHL API people endpoint. For most cases the playerNames argument can be provided for more convenient usage.

Value

data.frame, with all season statistics for selected players.

Examples

1
2
3
4
5
6
7
8
## Not run: 
 # With player names
 nhl_players_allseasons(c("joe sakic", "Peter Forsberg"))

 # With player ids
 nhl_players_allseasons(c(8451101, 8458554))

## End(Not run)

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