-
Notifications
You must be signed in to change notification settings - Fork 10
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
created load_injuries #14
Conversation
* created function to load injury report data from nflfastr-roster, `load_injuries` * documented `load_injuries` * added tests for `load_injuries`
Whoa, thanks for the PR @john-b-edwards! Can you bump the DESCRIPTION version to v0.0.5, add the function to the pkgdown function listing, and (optionally) add yourself as a ctb? I'll run the tests now |
Sure thing! |
Leaving for Seb to skim tomorrow |
I think I'd prefer the download logic of |
And we should add a variables vignette at some point. |
It's more efficient in some cases but less efficient in others. For example, with just one season, the
but above a certain number of seasons, downloading the combined
Happy to convert to the |
Oh yeah I assumed depth charts don't make sense for this logic as the overall file is quite big compared to one season. But that's not necessarily true for injuries (which is the reason why I commented this in this PR)? |
I’d just weigh in for these that I’d probably estimate the odds of someone wanting all the seasons vs one season in specific. Injuries perhaps all, depth chart perhaps one or two seasons? 🤷♂️ |
I tend to do season level for depth charts and overall for injuries. |
🤦 this is what i get for trying to work on two PRs simultaneously at 1 AM. Sorry @mrcaseb for the confusion |
Total agreement here, I think what you suggested works great. I'll put them together and push in a bit |
Realized also this morning that it should probably be added to the memoise and cache clearing sections also
-
Tan Ho
…________________________________
From: john-b-edwards ***@***.***>
Sent: Thursday, August 5, 2021 12:11:10 PM
To: nflverse/nflreadr ***@***.***>
Cc: Tan Ho ***@***.***>; Comment ***@***.***>
Subject: Re: [nflverse/nflreadr] created load_injuries (#14)
Total agreement here, I think what you suggested works great. I'll put them together and push in a bit
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#14 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AJCRZ33WJ7NQNNCFNKF6P5DT3KZZ5ANCNFSM5BSIRZQQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>.
|
Removed the purrr::map_dfr logic to read the complete injuries file and filter to a given season(s)
Looks good to me. Ready to merge @tanho63? |
load_injuries
load_injuries
load_injuries