find_previous_actions: Does the indexing to find the goals/concessions in a df of...

Description Usage Arguments Author(s)

View source: R/vaep_labels.R

Description

Does the indexing to find the goals/concessions in a df of spadl events

Usage

1
find_previous_actions(action_id, team, n_prev_actions, spadl)

Arguments

action_id

The action_id of an action

team

The team_id of an action

n_prev_actions

The number of events to look backwards and class as 'leading to a goal'

spadl

A dataframe of event data in spadl format

Author(s)

Robert Hickman


RobWHickman/Rteta documentation built on Oct. 28, 2020, 10:42 p.m.