getminutesplayed: This function returns the players from each match, the number...

Description Usage Arguments Value Examples

Description

For use with the all StatsBomb data. After StatsBomb data is read in from the JSON file, this function will return a dataframe of all of the minutes played for each player in each match.

Usage

1

Arguments

events

Dataframe of event object gathered from the StatsBomb API, need the ElapsedTime variable from the formatelapsedtime.R function.

Value

df

Returns a data frame with all of the player minutes played information for each match.

Examples

1
2
3
events <- StatsBombFreeEvents()
events <- formatelapsedtime(events)
get.minutesplayed(events)

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