Maps a raw match type to the internal format used for modeling.
Keeps test/odi/t20 distinctions for model accuracy.
Usage
get_model_format(match_type)
Arguments
- match_type
Character. Raw match type from cricsheet
Value
Character: "test", "odi", or "t20"
Details
While data organization uses long_form/short_form, models keep
separate test/odi/t20 distinctions because game dynamics differ
significantly between formats (e.g., run rates, wicket rates).
Examples
get_model_format("Test") # "test"
#> [1] "test"
get_model_format("ODI") # "odi"
#> [1] "odi"
get_model_format("T20") # "t20"
#> [1] "t20"
get_model_format("IT20") # "t20"
#> [1] "t20"
get_model_format("MDM") # "test" (first-class treated like Test)
#> [1] "test"