goalAttempts()
function goalAttempts(events): WyscoutEvent[];Defined in: packages/data-providers/src/wyscout/select.ts:43
Every attempt on goal: each Shot, plus each Free Kick whose
subEventName is "Penalty" or "Free kick shot".
Filter this, not the whole feed, for isGoal. Wyscout puts tag 101 on the
scoring action and on the conceding keeper's Save attempt, so
events.filter(isGoal) counts most goals twice.
goalAttempts(events).filter(isGoal) is still not the score: shootout
kicks are here too, and own goals are not. goalsFor counts the score.
Parameters
| Parameter | Type |
|---|---|
events | readonly WyscoutEvent[] |