Learn R Programming

StatsBombR (version 0.1.0)

StatsBombFreeLineups: This function returns all lineups for the matches requested, or all matches available. This is for use with the freely released data from StatsBomb.com.

Description

This function easily scrapes the free events available from StatsBomb on our GitHub repository. Currently, parallel is only supported on PCs.

Usage

StatsBombFreeLineups(MatchesDF = "ALL", Parallel = T)

Arguments

MatchesDF

Data frame of the matches you wish to pull for the lineups for. Or simply type "ALL" to return all free lineups available.

Parallel

Boolean variable for whether or not you want the function to run in parallel.

Value

df

Returns a data frame with all events for the matches selected.

Examples

Run this code
# NOT RUN {
StatsBombFreeLineups(MatchesDF = "ALL", Parallel = T)
StatsBombFreeLineups(MatchesDF = Matches, Parallel = T) #Where Matches is a dataframe of the matches
# }

Run the code above in your browser using DataLab