Learn R Programming

StatsBombR (version 0.1.0)

formatelapsedtime: This function uses the timestamp and period information to create an elapsed time from the beginning of the match variable.

Description

For use with the StatsBomb Data API credentials. After StatsBomb data is read in from the API, JSON file, this function uses the timestamp and period information to create an elapsed time from the beginning of the match variable.

Usage

formatelapsedtime(dataframe)

Arguments

dataframe

Dataframe object gathered from the StatsBomb API.

Value

df

Returns a data frame with all of the time information. Elapsed Time presented as time from thestart of the match in seconds.

Examples

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

Run the code above in your browser using DataLab