Skip to contents

Wrapper for calculate_projected_score() with Test-specific handling. Estimates overs remaining from match metadata if not provided.

Usage

calculate_test_projected_score(
  current_score,
  wickets_remaining,
  overs_bowled,
  match_days = 5,
  day_number = 1,
  overs_bowled_today = 0,
  expected_initial_score = NULL,
  params = NULL,
  gender = "male",
  team_type = "international"
)

Arguments

current_score

Integer. Runs scored in innings.

wickets_remaining

Integer. Wickets in hand.

overs_bowled

Numeric. Overs bowled in innings.

match_days

Integer. Total days in match (4 or 5).

day_number

Integer. Current day.

overs_bowled_today

Numeric. Overs bowled today (all innings).

expected_initial_score

Numeric. EIS (NULL = use default).

params

Named list. Projection parameters (NULL = use defaults).

gender

Character. "male" or "female".

team_type

Character. "international" or "club".

Value

Numeric. Projected innings total.

Examples

if (FALSE) { # \dontrun{
# Day 2 of a 5-day Test, 8 wickets in hand, 50 overs bowled
calculate_test_projected_score(
  current_score = 180, wickets_remaining = 8,
  overs_bowled = 50, match_days = 5,
  day_number = 2, overs_bowled_today = 50
)
} # }