Code examples based on the the textbook Practical Time Series With R - A Hands On Guide [2nd edition] by Shmueli, Galit; Lichtendahl Jr, Kenneth. Updated with code from Forecasting: Principles and Practice (3rd ed) Rob J Hyndman and George Athanasopoulos