View source: R/extract_shots.R
Extract all field goals from the SportVU data frame within a certain time margin of the field goal occuring.
1 | extract_shots(obj, pbp, margin = c(3, 3))
|
obj |
A data frame returned from |
pbp |
Play-by_play data frame (e.g. an object returned by
|
margin |
Margin around the game clock for each (shot) event. A vector of length two with the first element indicating how far back to go and the second element indicating how far forward to go (in seconds). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.