Description Usage Arguments Value Examples
Convert the PCTIMESTRING
variable to seconds to match the
game_clock
variable in the data frame returned by the
sportvu_df
function.
1 | convert_time(pbp)
|
pbp |
Play-by_play data frame (e.g. an object returned by
|
Returns the object given with an additional variable
game_clock
that represents PCTIMESTRING
in seconds.
1 2 3 4 | ## Not run:
game <- sportvu_df("~/path_to_file/0021500411.json")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.