Returns display-ready per-game player ratings for a specific match
or set of matches. Includes box-score stats, WPA, ERA, and
PSV/BatV/BowlV (if coefficients are available).
Usage
player_game_ratings(
format = c("t20", "odi", "test"),
match_ids = NULL,
source = c("local", "remote")
)
Arguments
- format
Character. "t20", "odi", or "test".
- match_ids
Character vector. Specific match IDs (NULL = all).
- source
Character. "local" or "remote".
Value
data.table with columns:
match_id, player_id, role, batting/bowling stats,
batting_wpa, bowling_wpa, total_wpa,
batting_era, bowling_era, total_era,
psv, batv, bowlv (if PSR model trained).