Description Usage Arguments Value Examples
Returns a competition league table from the football-data.org API
1 | fdo_leagueTable(id, matchDay = "", token = "", response = "full")
|
id |
(sting) The id (e.g. "436") of the league in which the teams compete. Requried. No default. |
matchDay |
(string) The matchday to which the league table applies (e.g. "3"). Optional. Default is the current match day. |
token |
(string) football data.org API token. Optional but it's recommended that you acquire an API token. It allows the owner to document API activity. See http://api.football-data.org/register for more details. |
response |
(string). Determine the structure of the response. Default is "full" and "minified" will remove some meta inforation and thus return a smaller data frame. Finally, "compressed" is only supported by the fixture resource. |
A data frame converted from the JSON format is returned.
1 2 3 4 5 6 7 | ## Not run:
# get current Spanish Primera Division (La Liga) standings (without metadata)
fdo_leagueTable("436",response = "minified")
# Primera Division league table afer match day 2
fdo_leagueTable("436",response = "minified",matchDay = "2")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.