Description Usage Arguments Value See Also
View source: R/marcelPitching.R
Apply marcels for pitchers
1 2 | apply_marcel_pitching(data, metric, age_adjustment_fun,
metric_weights = c(3, 2, 1), playing_time_weights = c(0.5, 0.1, 0))
|
data |
A data frame with pitching stats, including seasonal averages. |
metric |
A string given the name of the metric to compute projections for, e.g. 'HR' |
age_adjustment_fun |
A callable to make the age adjustment |
metric_weights |
An array with the weights to give to the projected stats for the previous seasons. The ith elemnt is the weight for the season i years previous. The default is the c(5, 4, 3). |
playing_time_weights |
An array with the weights to be used for projecting playing time |
A data frame containg Marcel projections for 'metric'. The projection is given the generic name 'proj_value'.
apply_marcel_pitching
,
get_team_projected_batting
,
export_marcels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.