Skip to content

Commit b5fe624

Browse files
committed
local checks pass
1 parent 343add1 commit b5fe624

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

R/flusight_hub_formatter.R

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,16 @@ abbr_to_fips <- function(abbr) {
2727
#' `canned_epipred` as created by, e.g., [arx_forecaster()]
2828
#' @param ... <[`dynamic-dots`][rlang::dyn-dots]> Name = value pairs of constant
2929
#' columns (or mutations) to perform to the results. See examples.
30-
#' @param .fcast_period
30+
#' @param .fcast_period Control whether the `horizon` should represent days or
31+
#' weeks. Depending on whether the forecaster output has target dates
32+
#' from [layer_add_target_date()] or not, we may need to compute the horizon
33+
#' and/or the `target_end_date` from the other available columns in the predictions.
34+
#' When both `ahead` and `target_date` are available, this is ignored. If only
35+
#' `ahead` or `aheads` exists, then the target date may need to be multiplied
36+
#' if the `ahead` represents weekly forecasts. Alternatively, if only, the
37+
#' `target_date` is available, then the `horizon` will be in days, unless
38+
#' this argument is `"weekly"`. Note that these can be adjusted later by the
39+
#' `...` argument.
3140
#'
3241
#' @return A [tibble::tibble]. If `...` is empty, the result will contain the
3342
#' columns `reference_date`, `horizon`, `target_end_date`, `location`,

man/flusight_hub_formatter.Rd

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)