soccerFlipHoriz: Flips x,y-coordinates horizontally in one half to account for changing sides at half-time
Description
Normalises direction of attack in both halves of both teams by
flipping x,y-coordinates horizontally in either the first or second half;
i.e. teams attack in the same direction all game despite changing sides at
half-time.
# NOT RUN {# to flip coordinates in 2nd half of a dataframe with 1st/2nd half identity # labelled by variable named `period`soccerFlipHoriz(df, "period", 2, 105, 68)
# }