Description Usage Arguments Value
View source: R/cleaning_functions.R
Trim frames for a play and/or remove plays based on how quickly provided events happen in the play.
1 2 3 4 5 6 7 |
df |
A dataframe containing player tracking data with |
end_events |
Events designated as play end events. Defaults are when a pass is thrown or QB's involvement ends in some other way (sack, strip sack, shovel pass, etc). |
time_after_event |
Number of frames to keep after the |
throw_frame |
If not NULL, for plays when one of the |
The original df with trimmed frames (and if throw_frame not NULL, the shorter plays removed).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.