getlineups: This function returns all lineups for the match specified in...

Description Usage Arguments Value Examples

Description

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.

Usage

1
2
get.lineups(username = "username", password = "password", match_id = "match_id", version = "v1",
baseurl = "https://data.statsbombservices.com/api/")

Arguments

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.

Value

df

Returns a data frame with all events for the match specified.

Examples

1
get.lineups(username = username, password = password, matches.epl$match_id[1])

nandomartinez/Soccer documentation built on Nov. 4, 2019, 8:34 p.m.