nflverse / nflverse-rosters

builds roster data for nflverse/nflverse-data
Other
20 stars 3 forks source link

Inconsistent week labels for pbp and roster for Super Bowl week #44

Closed guga31bb closed 1 year ago

guga31bb commented 1 year ago
load_rosters_weekly(2020) %>% 
  filter(season_type == "POST") %>% 
  select(week) %>% 
  distinct()

   week
  <int>
1    18
2    19
3    20
4    22

load_pbp(2020) %>% 
  filter(season_type == "POST") %>% 
  select(week) %>% 
  distinct()

   week
  <int>
1    18
2    19
3    20
4    21
john-b-edwards commented 1 year ago

rebuilding files now

john-b-edwards commented 1 year ago
nflreadr::load_rosters_weekly(2020) |>
    dplyr::group_by(game_type, week) |>
    dplyr::summarise() |>
    data.frame()
#> `summarise()` has grouped output by 'game_type'. You can override using the
#> `.groups` argument.
#>    game_type week
#> 1        CON   20
#> 2        DIV   19
#> 3        REG    1
#> 4        REG    2
#> 5        REG    3
#> 6        REG    4
#> 7        REG    5
#> 8        REG    6
#> 9        REG    7
#> 10       REG    8
#> 11       REG    9
#> 12       REG   10
#> 13       REG   11
#> 14       REG   12
#> 15       REG   13
#> 16       REG   14
#> 17       REG   15
#> 18       REG   16
#> 19       REG   17
#> 20        SB   21
#> 21        WC   18
nflreadr::load_schedules(2020) |>
    dplyr::group_by(game_type, week) |>
    dplyr::summarise() |>
    data.frame()
#> `summarise()` has grouped output by 'game_type'. You can override using the
#> `.groups` argument.
#>    game_type week
#> 1        CON   20
#> 2        DIV   19
#> 3        REG    1
#> 4        REG    2
#> 5        REG    3
#> 6        REG    4
#> 7        REG    5
#> 8        REG    6
#> 9        REG    7
#> 10       REG    8
#> 11       REG    9
#> 12       REG   10
#> 13       REG   11
#> 14       REG   12
#> 15       REG   13
#> 16       REG   14
#> 17       REG   15
#> 18       REG   16
#> 19       REG   17
#> 20        SB   21
#> 21        WC   18