apply_marcel_pitching: Apply marcels for pitchers

Description Usage Arguments Value See Also

View source: R/marcelPitching.R

Description

Apply marcels for pitchers

Usage

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))

Arguments

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

Value

A data frame containg Marcel projections for 'metric'. The projection is given the generic name 'proj_value'.

See Also

apply_marcel_pitching, get_team_projected_batting, export_marcels


bdilday/marcelR documentation built on March 7, 2020, 11:02 a.m.