From af34b5a1e606a4a6aecb030434613e6658741979 Mon Sep 17 00:00:00 2001 From: Rob Hyndman Date: Tue, 23 Jul 2024 12:04:22 +1000 Subject: [PATCH] Style readme --- README.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index d52ad004..d3150910 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ You can install the **stable** version from [CRAN](https://cran.r-project.org/package=forecast). ```s -install.packages('forecast', dependencies = TRUE) +install.packages("forecast", dependencies = TRUE) ``` You can install the **development** version from @@ -33,48 +33,48 @@ library(forecast) library(ggplot2) # ETS forecasts -USAccDeaths %>% - ets() %>% - forecast() %>% +USAccDeaths |> + ets() |> + forecast() |> autoplot() # Automatic ARIMA forecasts -WWWusage %>% - auto.arima() %>% - forecast(h=20) %>% +WWWusage |> + auto.arima() |> + forecast(h=20) |> autoplot() # ARFIMA forecasts library(fracdiff) x <- fracdiff.sim( 100, ma=-.4, d=.3)$series -arfima(x) %>% - forecast(h=30) %>% +arfima(x) |> + forecast(h=30) |> autoplot() # Forecasting with STL -USAccDeaths %>% - stlm(modelfunction=ar) %>% - forecast(h=36) %>% +USAccDeaths |> + stlm(modelfunction=ar) |> + forecast(h=36) |> autoplot() -AirPassengers %>% - stlf(lambda=0) %>% +AirPassengers |> + stlf(lambda=0) |> autoplot() -USAccDeaths %>% - stl(s.window='periodic') %>% - forecast() %>% +USAccDeaths |> + stl(s.window='periodic') |> + forecast() |> autoplot() # TBATS forecasts -USAccDeaths %>% - tbats() %>% - forecast() %>% +USAccDeaths |> + tbats() |> + forecast() |> autoplot() -taylor %>% - tbats() %>% - forecast() %>% +taylor |> + tbats() |> + forecast() |> autoplot() ```