Learn R Programming

nhlscrape (version 0.1.3)

AddTeamRoster: Adds rosters for team id and a specific season

Description

Add a teams roster to the 'roster' table for season. Can be accessed with a primary key of 'season_teamid_personid'

Usage

AddTeamRoster(team_id, season)

Arguments

team_id

Int, identity number for the team. Use GetTeamId to find

season

Int, A year range you want to add

Examples

Run this code
# NOT RUN {
SetDbPath(example = TRUE)
AddTeamRoster(10, 20192020)

# }

Run the code above in your browser using DataLab