getpositioncategory | 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 player ids and their position category.
get.positioncategory(events)
events |
Dataframe of event object gathered from the StatsBomb API, need the position.name and the player ids for all events. |
df |
Returns a data frame with all of the player ids and position categories. |
events <- StatsBombFreeEvents()
positions <- get.positioncategory(events)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.