Convert a team's ID to their actual name.
team_converter(teams, team_id)
teams | A `data.frame` containing the teams data. See details for more. |
---|---|
team_id | `numeric(1)`. The team's id. |
A `character(1)` containing the team's actual name.
`teams` is typically the output of the teams element of `https://fantasy.premierleague.com/api/bootstrap-static/`.