Skip to contents

Computes advanced bowling features from Cricinfo Hawkeye data: pitch line/length consistency, dot ball pitch maps, and wicket-taking zones.

Usage

calculate_hawkeye_bowler_features(conn, player_ids = NULL, min_balls = 60)

Arguments

conn

DBI connection

player_ids

Character vector of bowler IDs (optional, NULL = all)

min_balls

Integer. Minimum balls with Hawkeye data

Value

data.table with one row per bowler:

  • pct_good_length: % of balls on good length

  • pct_full: % of full-length balls

  • pct_short: % of short balls

  • pct_on_stump: % of balls on or around the stumps (line)

  • pct_dot_controlled: % of dot balls from controlled lengths

  • wicket_pct_good_length: % of wickets from good length balls

  • line_consistency: Entropy-based measure of line variety (lower = more consistent)

  • hawkeye_balls: Number of balls with Hawkeye data