add_attacking_direction: Add the attacking direction to events

Description Usage Arguments Value

View source: R/add_attacking_direction.R

Description

Adding a variable of 'attacking.direction' to the events dataframe allows us to keep track of the direction of play and how that relates to x, y positioning. It's a basic but crucial variable to add to our events dataframe to improve our analysis

Usage

1
add_attacking_direction(events, tDAT, metaDF, GameCentre)

Arguments

events

An events dataframe created from the 'parse_f24' function

tDAT

A tracking dataframe created from the 'parse_tracking' function

metaDF

An tracking metadata dataframe created from the 'parse_CH_metadata' function

GameCentre

A list of dataframes created from the 'parse_f7' function

Value

An events dataframe with the added attacking.direction variable


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