Learn R Programming

StatsBombR (version 0.1.0)

cleanlocations: This function cleans all of the location variables in a StatsBomb data frame.

Description

For use with the StatsBomb Data API credentials. After StatsBomb data is read in from the API, JSON file, this function will clean all of the location variables.

Usage

cleanlocations(dataframe)

Arguments

dataframe

Dataframe object gathered from the StatsBomb API.

Value

df

Returns a data frame with all locations cleaned.

Examples

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

Run the code above in your browser using DataLab