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.