getOpposingTeam: This function joins the opposing team in each match to all...

Description Usage Arguments Value Examples

Description

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.

Usage

1

Arguments

events

Dataframe object gathered from the StatsBomb API.

Value

df

Returns a data frame with the opposing team added as a variable.

Examples

1
events <- get.opposingteam(events)

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