Description Usage Arguments Examples
Get fip constants for each season. By default the function uses a method adapted from
Tom Tango and used by Fangraphs. The function returns FIP constants based on ERA FIP_ERA
as well as constants based on RA FIP_RA
.
Both the Tango and Frangraphs formulas use ERA for their FIP constants.
1 | fip_values(dat = NULL, Sep.Leagues = FALSE, Fangraphs = FALSE)
|
dat |
A full pitching table from the |
Sep.Leagues |
If TRUE, this will split the calculation and return unique FIP constants for the various leagues. This can be helpful in handling Designated Hitters and National League pitchers. It also isolates the park factors to their respective leagues. |
Fangraphs |
If TRUE the function will return the Fangraphs FIP constants. This can not be used in conjunction with the
|
1 2 3 4 5 | data("Pitching2016")
head(Pitching2016)
fip_df <- fip_values(Pitching2016, Fangraphs=FALSE)
head(fip_df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.