Learn R Programming

StatsBombR (version 0.1.0)

possessioninfo: Returns a data frame with all of the original data frame all cleaned for R with extra information added.

Description

For use with the StatsBomb Data API credentials. After StatsBomb data is read in from the API, JSON file, this function will return a data frame all formatted for R with extra information about the current posssession in the game added.

Usage

possessioninfo(dataframe)

Arguments

dataframe

Dataframe object gathered from the StatsBomb API.

Value

df

Returns a data frame with all of the original data frame all cleaned for R with extra information added.

Examples

Run this code
# NOT RUN {
possessioninfo(dataframe)
# }

Run the code above in your browser using DataLab