Description Usage Arguments Value
View source: R/add_pass_target.R
OPTA event data has two variables 140 and 141, that represent the the x and y pitch coordinates for the end point of a pass. We can convert from OPTA 0-100 values to ChyronHego CM and return the events dataframe back with new variables of target.x and target.y. The attacking.direction needs to be added to the events dataframe first from the 'add_attacking_direction' function in this package.
1 |
df |
An events dataframe created from the 'parse_event' function |
An events dataframe with the added target.x and target.y variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.