The fpp3 package contains data used in the book Forecasting: Principles and Practice (3rd edition) by Rob J Hyndman and George Athanasopoulos. It also loads several packages needed to do the analysis described in the book. These packages work with the tidyverse set of packages, sharing common data representations and API design. Additional data sets not used in the book are also included.
You can install the stable version from CRAN.
install.packages('fpp3', dependencies = TRUE)
You can install the development version from Github
# install.packages("remotes")
::install_github("robjhyndman/fpp3") remotes
library(fpp3)
will load the following packages:
You also get a condensed summary of conflicts with other packages you have loaded:
library(fpp3)
#> Registered S3 method overwritten by 'tsibble':
#> method from
#> as_tibble.grouped_df dplyr
#> ── Attaching packages ─────────────────────────────────────── fpp3 1.0.0.9000 ──
#> ✔ tibble 3.2.1 ✔ tsibble 1.1.5
#> ✔ dplyr 1.1.4 ✔ tsibbledata 0.4.1
#> ✔ tidyr 1.3.1 ✔ feasts 0.3.2
#> ✔ lubridate 1.9.3 ✔ fable 0.3.4.9000
#> ✔ ggplot2 3.5.1
#> ── Conflicts ───────────────────────────────────────────────── fpp3_conflicts ──
#> ✖ lubridate::date() masks base::date()
#> ✖ dplyr::filter() masks stats::filter()
#> ✖ tsibble::intersect() masks base::intersect()
#> ✖ tsibble::interval() masks lubridate::interval()
#> ✖ dplyr::lag() masks stats::lag()
#> ✖ tsibble::setdiff() masks base::setdiff()
#> ✖ tsibble::union() masks base::union()