calculate_angle: Calculate the Euclidean angle from the attacking net for all the events (plays) in a play-by-play
Description
calculate_angle() calculates the Euclidean angle from the attacking net for all the events (plays) in a play-by-play.
Usage
calculate_angle(play_by_play)
Value
data.frame with one row per event (play) and added angle column
Arguments
- play_by_play
data.frame of play-by-play(s); see gc_play_by_play() and/or wsc_play_by_play() for reference