knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The R package fpp2 loads data required for the examples and exercises used in the book Forecasting: Principles and Practice (2nd edition) by Rob J Hyndman and George Athanasopoulos. It also loads several packages needed to do the analysis described in the book.
You can install the stable version from CRAN.
install.packages('fpp2', dependencies = TRUE)
You can install the development version from Github
# install.packages("remotes") remotes::install_github("robjhyndman/fpp2-package")
library(fpp2)
will load the following packages:
You also get a condensed summary of conflicts with other packages you have loaded:
library(fpp2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.