Description Usage Arguments Value Examples
Returns information for a fixture (including past meetings) from the football-data.org API
1 | fdo_getFixture(id, past = "", token = "", response = "full")
|
id |
(sting) The id (e.g. "149461") of the fixture. Requried. No default. |
past |
(sting)Define the the number of former games to be analyzed in the head2head node. Optional. Defaults to 10. |
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 list of two data frames (one list for the specified fixtures, another for the past meetings) converted from the JSON format is returned.
1 2 3 4 5 6 7 8 | ## Not run:
# fixture id for Athletic Bilbao v Sevilla is 153986
# get fixture and past meetings information
fdo_getFixture("153986")
# just fixture information
fdo_getFixture("153986", past = 0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.