Description Usage Arguments Value Examples
Based on a series of heuristics, this function attempts to label Statcast data for which the launch angle and speed have been imputed.
1 2 | label_statcast_imputed_data(statcast_df, impute_file = NULL,
inverse_precision = 10000)
|
statcast_df |
A dataframe containing Statcast batted ball data |
impute_file |
A CSV file giving the launch angle, launch speed,
|
inverse_precision |
inverse of how many digits to truncate the launch angle
and speed to for comparison. Default is |
A copy of the input dataframe with a new column imputed
appended. imputed
is 1 if launch angle and launch speed are likely imputed, 0 otherwise.
1 2 3 4 5 6 | ## Not run:
statcast_df <- scrape_statcast_savant("2017-05-01", "2017-05-02")
sc_df <- label_statcast_imputed_data(statcast_df)
mean(sc_df$imputed)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.