You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you installed the latest development version of the package(s) in question?
I have installed the latest development version of the package.
If this is a data issue, have you tried clearing your nflverse cache?
I have cleared my nflverse cache and the issue persists.
What version of the package do you have?
1.4.0
Describe the bug
In 2001, week 5 and game_type = POST returns data for 31/32 teams, haven't checked which team is missing. Then, starting in 2007 with NE/NYG, week 5 and game_type = POST is the super bowl team's depth charts (i.e. all the way through 2023 where both SF/KC are charted this way, except 2014 seems to be without this bug).
In addition, the season weeks are just weird:
2001-04: weeks 1-21 are charted (correctly) but the playoff weeks have every team, not just the playoff teams
2005: data ends week 17
2006, 2014: seems right (weeks 1-21 charted and only teams in playoffs for 18-21)
2007-13, 2015-2020: week 18 is charted as like an extra fake regular season week for all teams, which pushes the subsequent weeks back one (i.e. the playoffs are now wrongly weeks 19-22)
2021-present: same thing as the bullet above except now the extra fake regular season week is week 19 and playoffs weeks 20-23
Reprex
r
library(nflreadr)
library(dplyr)
#> #> Attaching package: 'dplyr'#> The following objects are masked from 'package:stats':#> #> filter, lag#> The following objects are masked from 'package:base':#> #> intersect, setdiff, setequal, union
library(ggplot2)
dc<-nflreadr::load_depth_charts(seasons=TRUE)
dplyr::count(subset(dc, week==5&game_type=="POST"), season, club_code) %>% View()
#> Error in check_for_XQuartz(): X11 library is missing: install XQuartz from xquartz.macosforge.org
subset(dplyr::count(dc, season, week), week>=17) %>%
ggplot(aes(week, n)) +
geom_col() +
facet_wrap(~season)
Is there an existing issue for this?
Have you installed the latest development version of the package(s) in question?
If this is a data issue, have you tried clearing your nflverse cache?
I have cleared my nflverse cache and the issue persists.
What version of the package do you have?
1.4.0
Describe the bug
In 2001, week 5 and game_type = POST returns data for 31/32 teams, haven't checked which team is missing. Then, starting in 2007 with NE/NYG, week 5 and game_type = POST is the super bowl team's depth charts (i.e. all the way through 2023 where both SF/KC are charted this way, except 2014 seems to be without this bug).
In addition, the season weeks are just weird:
Reprex
Created on 2024-04-17 with reprex v2.1.0
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: