View source: R/helper_add_xyac.R
add_xyac | R Documentation |
Add expected yards after completion (xyac) variables
add_xyac(pbp, ...)
pbp |
is a Data frame of play-by-play data scraped using |
... |
Additional arguments passed to a message function (for internal use). |
Build columns that capture what we should expect after the catch.
The input Data Frame of the parameter 'pbp' with the following columns added:
Expected value of EPA gained after the catch, starting from where the catch was made. Zero yards after the catch would be listed as zero EPA.
Probability play earns positive EPA (relative to where play started) based on where ball was caught.
Probability play earns a first down based on where the ball was caught.
Average expected yards after the catch based on where the ball was caught.
Median expected yards after the catch based on where the ball was caught.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.