add_pass_target: Convert the pass destination from OPTA to ChyronHego spec

Description Usage Arguments Value

View source: R/add_pass_target.R

Description

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.

Usage

1

Arguments

df

An events dataframe created from the 'parse_event' function

Value

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


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