Skip to content

Commit 8d1e47d

Browse files
committed
pass local checks
1 parent 169f764 commit 8d1e47d

7 files changed

+13
-13
lines changed

R/cdc_baseline_forecaster.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#' filter(weekdays(time_value) == "Saturday")
3535
#'
3636
#' cdc <- cdc_baseline_forecaster(weekly_deaths, "deaths")
37-
#' preds <- pivot_quantiles(cdc$predictions, .pred_distn)
37+
#' preds <- pivot_quantiles_wider(cdc$predictions, .pred_distn)
3838
#'
3939
#' if (require(ggplot2)) {
4040
#' forecast_date <- unique(preds$forecast_date)

R/layer_cdc_flatline_quantiles.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
#'
7373
#' preds <- preds %>%
7474
#' unnest(.pred_distn_all) %>%
75-
#' pivot_quantiles(.pred_distn) %>%
75+
#' pivot_quantiles_wider(.pred_distn) %>%
7676
#' mutate(target_date = forecast_date + ahead)
7777
#'
7878
#' if (require("ggplot2")) {

R/pivot_quantiles.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ nested_quantiles <- function(x) {
2525
#'
2626
#' Selected columns that contain `dist_quantiles` will be "lengthened" with
2727
#' the quantile levels serving as 1 column and the values as another. If
28-
#' multiple columns are selected, these will be prefixed the the column name.
28+
#' multiple columns are selected, these will be prefixed with the column name.
2929
#'
3030
#' @param .data A data frame, or a data frame extension such as a tibble or
3131
#' epi_df.
@@ -39,7 +39,7 @@ nested_quantiles <- function(x) {
3939
#' has 7, then the only option would be to recycle everything, creating a
4040
#' _very_ long result. By default, this would throw an error. But if this is
4141
#' really the goal, then the error can be bypassed by setting this argument
42-
#' to `TRUE`. The first selected column will vary fastest.
42+
#' to `TRUE`. The quantiles in the first selected column will vary the fastest.
4343
#'
4444
#' @return An object of the same class as `.data`.
4545
#' @export

man/cdc_baseline_forecaster.Rd

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

man/layer_cdc_flatline_quantiles.Rd

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

man/pivot_quantiles_longer.Rd

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

vignettes/articles/sliding.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ fc <- bind_rows(
129129
)
130130
) %>% list_rbind()
131131
) %>%
132-
pivot_quantiles(fc_.pred_distn)
132+
pivot_quantiles_wider(fc_.pred_distn)
133133
```
134134

135135
Here, `arx_forecaster()` does all the heavy lifting. It creates leads of the
@@ -225,7 +225,7 @@ can_fc <- bind_rows(
225225
)
226226
) %>% list_rbind()
227227
) %>%
228-
pivot_quantiles(fc_.pred_distn)
228+
pivot_quantiles_wider(fc_.pred_distn)
229229
```
230230

231231
The figures below shows the results for all of the provinces.
@@ -327,7 +327,7 @@ k_week_version_aware <- function(ahead = 7, version_aware = TRUE) {
327327
fc <- bind_rows(
328328
map(aheads, ~ k_week_version_aware(.x, TRUE)) %>% list_rbind(),
329329
map(aheads, ~ k_week_version_aware(.x, FALSE)) %>% list_rbind()
330-
) %>% pivot_quantiles(fc_.pred_distn)
330+
) %>% pivot_quantiles_wider(fc_.pred_distn)
331331
```
332332

333333
Now we can plot the results on top of the latest case rates. As before, we will only display and focus on the results for FL and CA for simplicity.

0 commit comments

Comments
 (0)