
Calculate Projection Resource Remaining
Source:R/score_projection.R
calculate_projection_resource.RdCalculates the percentage of batting resources remaining based on wickets and balls in hand using parameterized power formula.
Usage
calculate_projection_resource(
wickets_remaining,
balls_remaining,
format = "t20",
z = NULL,
y = NULL,
max_balls = NULL
)Arguments
- wickets_remaining
Integer. Wickets in hand (0-10).
- balls_remaining
Integer. Balls remaining in innings.
- format
Character. Match format: "t20", "odi", or "test".
- z
Numeric. Power parameter for balls (default from constants).
- y
Numeric. Power parameter for wickets (default from constants).
- max_balls
Integer. Maximum balls in format (NULL = use default).