
Create Player Game Data from Cricinfo Ball-by-Ball
Source:R/player_game_data.R
create_player_game_data.RdAggregates Cricinfo delivery data into one row per player per match, with box-score stats, WPA, ERA, and Hawkeye features for both batting and bowling roles.
Usage
create_player_game_data(
format = c("t20", "odi", "test"),
conn = NULL,
match_ids = NULL,
gender = NULL
)Value
data.table with one row per player per match. Players who both bat and bowl get a single row with both batting and bowling columns. Key columns: match_id, player_id, player_name, team, match_date, role, batting_runs, batting_wpa, batting_era, bowling_wickets, bowling_wpa, bowling_era, total_wpa, total_era, plus Hawkeye features.