Skip to content

Commit

Permalink
Sped up model() example
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchelloharawild committed Jan 20, 2020
1 parent 93731e1 commit 5835efd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions R/model.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ model <- function(.data, ...){
#'
#'
#' @examples
#' if (requireNamespace("fable", quietly = TRUE)) {
#' if (requireNamespace("fable", quietly = TRUE) && requireNamespace("tsibbledata", quietly = TRUE)) {
#' library(fable)
#' library(tsibbledata)
#'
Expand All @@ -39,10 +39,13 @@ model <- function(.data, ...){
#' model(ets = ETS(log(Beer) ~ error("M") + trend("Ad") + season("A")))
#'
#' # Training a seasonal naive and ETS(A,A,A) model to the monthly
#' # "Food retailing" turnover for each Australian state/territory.
#' # "Food retailing" turnover for selected Australian states.
#' library(dplyr)
#' aus_retail %>%
#' filter(Industry == "Food retailing") %>%
#' filter(
#' Industry == "Food retailing",
#' State %in% c("Victoria", "New South Wales", "Queensland")
#' ) %>%
#' model(
#' snaive = SNAIVE(Turnover),
#' ets = ETS(log(Turnover) ~ error("A") + trend("A") + season("A")),
Expand Down
9 changes: 6 additions & 3 deletions man/model.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5835efd

Please sign in to comment.