freezeframeinfo: This function returns the defensive information from the shot...

View source: R/freezeframeinfo.R

freezeframeinfoR Documentation

This function returns the defensive information from the shot freeze frame variable.

Description

For use with the StatsBomb Data API credentials. After StatsBomb data is read in from the API, JSON file, this function will pull all of the defensive and attacking information from the freeze frames.

Usage

freezeframeinfo(dataframe)

Arguments

dataframe

Dataframe object gathered from the StatsBomb API.

Value

df

Returns a data frame with extra information calculated from the freeze frames.

Examples

allevents <- freezeframeinfo(allevents)

statsbomb/StatsBombR documentation built on Dec. 3, 2024, 11:53 p.m.