edge_code: Edge Code

Description Usage Arguments Examples

Description

This function allows you to classify individual pitches based on the various categories from the Edge

Usage

1
edge_code(df, height_var_name = "b_height")

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)

height_var_name

The name of the variable in the dataset that includes the batter's height. Defaults to b_height which assumes an height + inch format. If the variable name is "Height" it assumes the variable is already converted to inches (as is the case in some databases)

Examples

1
## Not run: edge_code(df)

Fackz/baseball documentation built on June 25, 2019, 12:05 a.m.