get.lineups | R Documentation |
For use with the StatsBomb Data API credentials. This function is used to access the JSON file from the StatsBomb API and format it as a data frame (tibble) for use in R.
get.lineups(username = "username", password = "password", match_id = "match_id", version = "v1",
baseurl = "https://data.statsbombservices.com/api/")
username |
Character string of your StatsBomb API username. |
password |
Character string of your StatsBomb API password. |
match_id |
Character/integer string of the match_id for the match you wish to access. |
version |
Character string of the version of the StatsBomb API you wish to access. Currently version v1, v2, v3 and v4 are supported. |
df |
Returns a data frame with all events for the match specified. |
get.lineups(username = username, password = password, matches.epl$match_id[1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.