-
Notifications
You must be signed in to change notification settings - Fork 8
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
446 promote other_keys as an argument to as_epi_df()
#512
446 promote other_keys as an argument to as_epi_df()
#512
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on! A few haphazard suggestions & a question about subclass
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I'm removing the subclass options.
- On the
other_keys = character(0)
: @brookslogan should the default beNULL
orcharacter(0)
?
I'd favor [and if you mean just what the default arg should be rather than what attr value it maps to, I think tidy style guide suggests |
The downside of
It sounds like you prefer 1 or 2? |
I prefer 1. over 3. because 3. required checking how |
On 2., maybe I should be more explicit. Something like:
In this case, no And you would need similar handling in |
Yeah, for 2., that's what I was thinking of. I think we had Is the concern about keeping it in the metadata just about RAM space or mindspace? On the mindspace-part, I feel it's a bit easier to think about than possibly-NULLness. |
Playing around a bit, confused why I can't see r$> attributes(jhu_csse_daily_subset)$metadata
$geo_type
[1] "state"
$time_type
[1] "day"
$as_of
[1] "2024-01-26 09:27:32 PST" UPDATE: Ah, I see, the dataset needs to be regenerated. Tricky. r$> x <- jhu_csse_daily_subset %>% tibble %>% as_epi_df
r$> attributes(x)$metadata
$geo_type
[1] "state"
$time_type
[1] "day"
$as_of
[1] "2024-01-26 09:27:32 PST"
$other_keys
character(0) |
I think this might have been a missed chore from #390? Somehow I thought we already noticed it and regenerated, but guess not. |
* glue was in Imports twice * stored data requires R (>=3.6) * no need to collate without R6
we keep it, but we don't print it. Co-authored-by: brookslogan <[email protected]>
5faef20
to
67edeb8
Compare
Checklist
Please:
PR).
brookslogan, nmdefries.
DESCRIPTION
. Always incrementthe patch version number (the third number), unless you are making a
release PR from dev to main, in which case increment the minor version
number (the second number).
(backwards-incompatible changes to the documented interface) are noted.
Collect the changes under the next release number (e.g. if you are on
1.7.2, then write your changes under the 1.8 heading).
Change explanations for reviewer
other_keys
and deprecatesadditional_metadata
as arguments toas_epi_df()
additional_metadata
withattr(epi_df, "additional_metadata") <- list(...)
.{epipredict}
vignettes and the tooling book.Magic GitHub syntax to mark associated Issue(s) as resolved when this is merged into the default branch
other_keys
#446