-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a calculate_team_stats() function #342
Comments
I am considering pfr for this. We could write scrapers for their team stats tables and put it all together in pfr_scrapR. What do you think @tanho63 and @guga31bb? Some links:
|
I’m curious whether that is better or whether we should develop a true parallel to player stats (ie build up from pbp) |
Yeah if we do this, it should probably be with pbp so people can subset the data before doing it (which isn't possible if we just scraped PFR) |
I agree this has some value over PFR. We'd miss out some pfr specific data by going the nflfastR pbp route tho. But we could at least have our own model data and add series conversion rates. |
I also wonder if we could go with this pseudo code
|
hmm. if the target is the PFR standard offense tables I guess I don't see why not? We wouldn't have the series conversion rates though, nor redzone or drive averages by doing it that way. I'm sure we could reuse a lot of the code that prepares player_stats though. Briefly wondering if it should be written in data.table to make go faster - likely to be processing whole seasons worth of pbp with this function |
Can I request that a calculate_team_stats() function be created, similar to the calculate_player_stats() function, that would calculate the official nfl tallies for team yards, TDs, points per drive, etc.?
The text was updated successfully, but these errors were encountered: