GetTeamId: Search for team id from team name

Description Usage Arguments Value Examples

View source: R/db_retrieval.R

Description

Retrieve the team ID using the abbreviation, or full name of the team

Usage

1
GetTeamId(team_name)

Arguments

team_name

Character, contains either abbreviation or full name

Value

Int, team ID number.

Examples

1
2
3
4
5
SetDbPath(example = TRUE)
AddAllTeamsDb()
GetTeamId("TOR")
GetTeamId("tor")
GetTeamId("Toronto Maple Leafs")

nhlscrape documentation built on March 26, 2020, 5:29 p.m.