team_converter: Team Converter

Description Usage Arguments Details Value

View source: R/converters.R

Description

Convert a team's ID to their actual name.

Usage

1
team_converter(teams, team_id)

Arguments

teams

A 'data.frame' containing the teams data. See details for more.

team_id

‘numeric(1)'. The team’s id.

Details

'teams' is typically the output of the teams element of 'https://fantasy.premierleague.com/api/bootstrap-static/'.

Value

A ‘character(1)' containing the team’s actual name.


nathaneastwood/fpl documentation built on Nov. 22, 2020, 9:27 p.m.