football_get_competition: Get competition information

Description Usage Arguments Value

View source: R/football_get_competition.R

Description

Get either information on what competitions exist, or a particular competition.

Usage

1
2
3
4
5
football_get_competition(
  competition_id = NULL,
  api = "football-data.org",
  api_token = Sys.getenv("API_FOOTBALL_DATA")
)

Arguments

competition_id

The id for that competition. Optional

api

Name of API. Currently has "football-data.org"

api_token

The API token.

Value

Dataframe with existing competitions.


epijim/FootballData documentation built on March 3, 2021, 11:52 p.m.