View source: R/matchesvector.R
matchesvector | R Documentation |
For use with the StatsBomb Data API credentials. This function is used to access the JSON file from the StatsBomb API and return the matches in vector form. For reference, the premier league has a competition id = 2 and 2018 is season_id = 1.
matchesvector(username = "username", password = "password",
season_id = "season_id", competition_id = "competition_id")
username |
Character object of your StatsBomb API username. |
password |
Character object of your StatsBomb API password. |
season_id |
Character object of the season_id for the matches you wish to access. |
competition_id |
Character object of the competition_id for the match you wish to access. |
vector |
Returns a vector with all matches for the specified season and competition. |
matches <- matchesvector(username = "username", password = "password",
season_id = "season_id", competition_id = "competition_id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.