calculate_epv: Calculating EPV for passes, carries, etc

View source: R/calculate_epv.R

calculate_epvR Documentation

Calculating EPV for passes, carries, etc

Description

Calculating EPV for passes, carries, etc

Usage

calculate_epv(data, type = "opta")

Arguments

data

The dataframe that stores your data. Must contain starting x,y locations and ending x,y locations: x, y, finalX, finalY

type

indicator for what type of data the eventData. Currently, options include "opta" (default) and "statsbomb"

Value

returns a dataframe object

Examples

## Not run: 
endResult <- calculate_epv(test, type = "statsbomb")
endResult

## End(Not run)

abhiamishra/ggshakeR documentation built on Aug. 19, 2023, 2 p.m.