This function allows you to classify individual pitches based on the various categories from the Edge
Usage
edge_code(df)
Arguments
df
A dataframe that, at a minimum, includes the following columns: batter height (b_height), the batter's handedness (stand), vertical location of the pitch (pz), and then horizontal location of the pitch (pz)