get.minutesplayed | R Documentation |
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.
get.minutesplayed(events)
events |
Dataframe of event object gathered from the StatsBomb API, need the ElapsedTime variable from the formatelapsedtime.R function. |
df |
Returns a data frame with all of the player minutes played information for each match. |
events <- StatsBombFreeEvents()
events <- formatelapsedtime(events)
get.minutesplayed(events)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.