convert_time: Convert Game Clock Time in play-by-play Data

Description Usage Arguments Value Examples

View source: R/time.R

Description

Convert the PCTIMESTRING variable to seconds to match the game_clock variable in the data frame returned by the sportvu_df function.

Usage

1

Arguments

pbp

Play-by_play data frame (e.g. an object returned by get_pbp). One of the columns must contain the PCTIMESTRING variable.

Value

Returns the object given with an additional variable game_clock that represents PCTIMESTRING in seconds.

Examples

1
2
3
4
## Not run: 
game <- sportvu_df("~/path_to_file/0021500411.json")

## End(Not run)

imadmali/NBAsportvu documentation built on May 17, 2019, 9:12 a.m.