Skip to content
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

As covid hub forecasts function #398

Merged
merged 9 commits into from
Nov 3, 2023
Merged

Conversation

lshandross
Copy link
Collaborator

Add a function (and associated tests) that transforms a hubverse model_out_tbl (or similar dataframe) into a covid hub format

@lshandross lshandross requested a review from elray1 October 31, 2023 21:05
tests/testthat/test-as_covid_hub_forecasts.R Outdated Show resolved Hide resolved
tests/testthat/test-as_covid_hub_forecasts.R Outdated Show resolved Hide resolved
stop("You must provide the names of columns with location, horizon, target, output_type, output_type_id, and value information.")
}

if (isFALSE(all(sort(provided_names) %in% sort(names(model_outputs))))) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment: to check membership, we should not need to sort

@lshandross lshandross merged commit 8bed140 into master Nov 3, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants