get_team_roster_statistics {nhlscraper} | R Documentation |
Get roster statistics by team, season, game-type, and player-type
Description
get_team_roster_statistics()
retrieves information on each player for a given set of team
, season
, game_type
and player_type
, including but not limited to their ID, name, and statistics. Access get_teams()
for team
and get_team_seasons()
for season
references.
Usage
get_team_roster_statistics(
team = "BOS",
season = get_season_now()$seasonId,
game_type = 2,
player_type = "skaters"
)
Arguments
team |
string 3-letter Code |
season |
integer in YYYYYYYY |
game_type |
integer where 2=regular and 3=playoffs |
player_type |
string of 'skaters' or 'goalies' |
Value
tibble with one row per player
Examples
regular_COL_goalies_statistics_20242025 <- get_team_roster_statistics(
team='COL',
season=20242025,
game_type=2,
player_type='goalies'
)
[Package nhlscraper version 0.2.0 Index]