add_CH_origin: Convert the pass origin from OPTA to ChyronHego spec

Description Usage Arguments Value

View source: R/add_CH_origin.R

Description

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.

Usage

1

Arguments

df

An events dataframe created from the 'parse_event' function

Value

An events dataframe with the added origin.x and origin.y variables


FCrSTATS/fc.rstats documentation built on July 18, 2019, 5:08 a.m.