Collect teams' id for a season and a competition.

collect_f1_teams_id(
  user,
  passwd,
  competition = 24,
  season,
  root_url = "http://omo.akamai.opta.net/competition.php"
)

Arguments

user

User to connect to the root_url account;

passwd

Password of the user to use.

competition

Competition id. Default set to 24.

season

Season of the games to collect. If set, nor match_id nor matches_id are read.

root_url

The url to collect the f24 file. By default it is set to http://omo.akamai.opta.net/competition.php.

Value

A tibble containing two columns: a team_id and a label

Examples

if (FALSE) {
iniestat::collect_f1_teams_id(user = "MYUSER", passwd = "MYPASSWD", season = 2020)
}