Convert team ID to abbreviation

team_abbrev(teamId, teams = league_teams(leagueId = ffl_id()))

Arguments

teamId

A integer vector of team numbers to convert.

teams

A table of teams, like that from league_teams().

Value

A factor vector of team abbreviations.

Examples

team_abbrev(teamId = 2, teams = league_teams(leagueId = "42654852"))
#> [1] BOS
#> Levels: AUS BOS CHI DEN