Learn R Programming

baseballr (version 0.4)

linear_weights_savant: Generate linear weight values for events using Baseball Savant data

Description

This function allows a user to generate linear weight values for events using Baseball Savant data. Output includes both linear weights above average and linear weights above outs for home runs, triples, doubles, singles, walks, hit by pitches, and outs.

Usage

linear_weights_savant(df)

Arguments

df

A data frame generated from Baseball Savant that has been run through the run_expectancy_code function.

Examples

Run this code
# NOT RUN {
linear_weights_savant(df)
# }

Run the code above in your browser using DataLab