install.packages(c("rmarkdown", "forecast"))
Write inline R code using backtick quotes: forecast()
It’s always better to give than to receive.
See Hyndman and Athanasopoulos (2014).
knitr::kable(head(iris))
Sepal.Length | Sepal.Width | Petal.Length | Petal.Width | Species |
---|---|---|---|---|
5.1 | 3.5 | 1.4 | 0.2 | setosa |
4.9 | 3.0 | 1.4 | 0.2 | setosa |
4.7 | 3.2 | 1.3 | 0.2 | setosa |
4.6 | 3.1 | 1.5 | 0.2 | setosa |
5.0 | 3.6 | 1.4 | 0.2 | setosa |
5.4 | 3.9 | 1.7 | 0.4 | setosa |
library(forecast)
plot(stlf(AirPassengers, lambda=0))
Hyndman, Rob J, and George Athanasopoulos. 2014. Forecasting: Principles and Practice. OTexts.