Description Usage Arguments Value
View source: R/add_CH_origin.R
OPTA event data has two variables x and y, that represent the the x and y pitch coordinates for the origina point of an event. We can convert from OPTA 0-100 values to ChyronHego CM and return the events dataframe back with new variables of origin.x and origin.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 origin.x and origin.y variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.