formatelapsedtime: This function uses the timestamp and period information to...

Description Usage Arguments Value Examples

View source: R/formatelapsedtime.R

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

1
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

1
formatelapsedtime(dataframe)

nandomartinez/Soccer documentation built on Nov. 4, 2019, 8:34 p.m.