View source: R/cfbd_pbp_data_v2.R
| cfbd_pbp_data_v2 | R Documentation |
Returns CFBD play-by-play data with optional Expected Points
Added (EPA) and Win Probability Added (WPA) modeling. The modular
successor to cfbd_pbp_data(): a thin orchestrator over the shared
EPA/WPA engine (.run_epa_wpa()), the canonical play-type taxonomy
(.pbp_play_types()), and the canonical output schema
(.pbp_output_order). Side-by-side with the legacy entry point until the
equivalence harness proves the new path matches.
cfbd_pbp_data_v2(
year,
season_type = "regular",
week = 1,
team = NULL,
play_type = NULL,
epa_wpa = FALSE,
output = "default"
)
year |
(Numeric required): Season year (e.g. |
season_type |
(Character): Season type — |
week |
(Numeric): Week number. |
team |
(Character): Optional team filter (e.g. |
play_type |
(Character): Optional play-type filter (see cfbd_play_type_df). |
epa_wpa |
(Logical): When |
output |
(Character): controls the modeled-output column set when
|
A cfbfastR_data tibble. The epa_wpa = TRUE output matches the
legacy cfbd_pbp_data() pipeline-canonical column set on every column
it carries; the output argument controls which intermediate columns
are retained. Documented bug-fix sites are listed in the package
vignette.
Other CFBD PBP:
cfbd_live_plays(),
cfbd_pbp_data(),
cfbd_play_stats_player(),
cfbd_play_stats_types(),
cfbd_play_types(),
cfbd_plays()
x <- try(cfbd_pbp_data_v2(
year = 2024, week = 1, season_type = "regular",
epa_wpa = TRUE, output = "default"
))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.