Closed johnathan-o-h-napier closed 3 months ago
I have triggered a pbp rebuild with a fix in nflfastR yesterday. Could you check again, if the problem still exists? Please make sure to load fresh pbp, either by restarting your session or running nflreadr::clear_cache()
That got it. All teams data is now intact. Away/home and pos/def issues for the LA Rams have been resolved.
I also discovered where the discrepancy was in rushing yards. I didn't incorporate quarterback kneels. They do officially count as negative yards to the total yards rushing. I suppose on some level you are "rushing" backwards.
Thanks.
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.0.3
Describe the bug
I have encountered two separate issues when trying summarize data across each game.
The first I encountered was the fact that the Los Angeles Rams were inconsistently referred to as either LA or LAR in the posteam, defteam, away_team, or home_team columns. Further issue arose when trying summarize data for this team. Some yard totals came to 0 for the entire game. Upon further inspection, 3 rows were being generated for the same game_id: LAR vs other team, other team vs LAR, and LAR vs. LAR. posteam_type are all away when this occurs. This has a multi-pronged effect, the home and away scores and subsequently the posteam and defteam scores get incorrectly computed, some games result in 0 yards, and the correct yardages are computed for a game that shows a team versus itself.
The second issue is in yard totals. Often (>50%) of the time the rushing yards are off by 1-3 yards. I went back to several games to check the official totals. This is noticeable when the passing yards + rushing yards != total yards. I'm not exactly sure why this is occurring.
Reprex
Expected Behavior
Yard totals to sum together. Consistent usage of team abbreviation for LAR. Non-zero yardage. posteam and defteam to not be equal.
nflverse_sitrep
Screenshots
No response
Additional context
No response