get.opposingteam | R Documentation |
For use with StatsBomb Data API credentials. This function takes a data frame of events and returns the opposing team for each event. The events data frame must include at least one event from each team per game.
get.opposingteam(events)
events |
Dataframe object gathered from the StatsBomb API. |
df |
Returns a data frame with the opposing team added as a variable. |
events <- get.opposingteam(events)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.