Skip to content

Commit dc41793

Browse files
committed
rename flatline / internal docs
1 parent 8d5ccdf commit dc41793

7 files changed

+18
-16
lines changed

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export(extract_layers)
8080
export(extrapolate_quantiles)
8181
export(flatline)
8282
export(flatline_args_list)
83-
export(flatline_epi_forecaster)
83+
export(flatline_forecaster)
8484
export(frosting)
8585
export(get_test_data)
8686
export(grab_names)

R/flatline.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#' horizon. The right hand side must contain any keys (locations) for the
1111
#' panel data separated by plus. The observed time series must come last.
1212
#' For example
13-
#' ```
13+
#' ```r
1414
#' form <- as.formula(lead7_y ~ state + age + y)
1515
#' ```
1616
#' Note that this function doesn't DO the shifting, that has to be done
@@ -26,6 +26,7 @@
2626
#' predictions for future data (the last observed of the outcome for each
2727
#' combination of keys.
2828
#' @export
29+
#' @keywords internal
2930
#'
3031
#' @examples
3132
#' tib <- data.frame(y = runif(100),

R/flatline_epi_forecaster.R renamed to R/flatline_forecaster.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
#' jhu <- case_death_rate_subset %>%
2727
#' dplyr::filter(time_value >= as.Date("2021-12-01"))
2828
#'
29-
#' out <- flatline_epi_forecaster(jhu, "death_rate")
30-
flatline_epi_forecaster <- function(epi_data,
31-
outcome,
32-
args_list = flatline_args_list()) {
29+
#' out <- flatline_forecaster(jhu, "death_rate")
30+
flatline_forecaster <- function(epi_data,
31+
outcome,
32+
args_list = flatline_args_list()) {
3333

3434
validate_forecaster_inputs(epi_data, outcome, "time_value")
3535
keys <- epi_keys(epi_data)
@@ -71,7 +71,7 @@ flatline_epi_forecaster <- function(epi_data,
7171

7272
#' Flatline forecaster argument constructor
7373
#'
74-
#' Constructs a list of arguments for [flatline_epi_forecaster()].
74+
#' Constructs a list of arguments for [flatline_forecaster()].
7575
#'
7676
#' @inheritParams arx_args_list
7777
#'

man/flatline.Rd

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

man/flatline_args_list.Rd

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

man/flatline_epi_forecaster.Rd renamed to man/flatline_forecaster.Rd

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

vignettes/epipredict.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ But ideally, a user could create their own forecasters by building up the
328328
components we provide. In other vignettes, we try to walk through some of these
329329
customizations.
330330

331-
To illustrate everything above, here is (roughly) the code for the `flatline_epi_forecaster()` applied to the `case_rate`.
331+
To illustrate everything above, here is (roughly) the code for the `flatline_forecaster()` applied to the `case_rate`.
332332

333333
```{r}
334334
r <- epi_recipe(jhu) %>%

0 commit comments

Comments
 (0)