Learn R Programming

StatsBombR (version 0.1.0)

freezeframeinfo: 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

Run this code
# NOT RUN {
allevents <- freezeframeinfo(allevents)
# }

Run the code above in your browser using DataLab