fpp3 v0.1


Monthly downloads



Data for "Forecasting: Principles and Practice" (3rd Edition)

All data sets required for the examples and exercises in the book "Forecasting: principles and practice" by Rob J Hyndman and George Athanasopoulos <http://OTexts.org/fpp3/>. All packages required to run the examples are also loaded.



status Travis build


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.


You can install the stable version from CRAN.

install.packages('fpp3', dependencies = TRUE)

You can install the development version from Github

# install.packages("remotes")


library(fpp3) will load the following packages:

  • tibble, for tibbles, a modern re-imagining of data frames.
  • dplyr, for data manipulation.
  • tidyr, to easily tidy data using spread() and gather().
  • lubridate, for date/times.
  • ggplot2, for data visualisation.
  • tsibble, for tsibbles, a time series version of a tibble.
  • tsibbledata, various time series data sets in the form of tsibbles.
  • feasts, for features and statistics of time series.
  • fable, for fitting models and producing forecasts.

You also get a condensed summary of conflicts with other packages you have loaded:

#> ── Attaching packages ─────────────────────────────────────────────────────────────── fpp3 0.1 ──
#> ✔ tibble      2.1.3          ✔ tsibble     0.8.4     
#> ✔ dplyr       0.8.3          ✔ tsibbledata
#> ✔ tidyr       1.0.0          ✔ feasts
#> ✔ lubridate   1.7.4          ✔ fable
#> ✔ ggplot2     3.2.1
#> ── Conflicts ────────────────────────────────────────────────────────────────── fpp3_conflicts ──
#> ✖ lubridate::date()       masks base::date()
#> ✖ dplyr::filter()         masks stats::filter()
#> ✖ tsibble::id()           masks dplyr::id()
#> ✖ tsibble::interval()     masks lubridate::interval()
#> ✖ dplyr::lag()            masks stats::lag()
#> ✖ tsibble::new_interval() masks lubridate::new_interval()

Functions in fpp3

Name Description
fpp3_packages List all packages loaded by fpp3
aus_airpassengers Air Transport Passengers Australia
boston_marathon Boston marathon winning times since 1897
us_employment US monthly employment data
us_gasoline US finished motor gasoline product supplied.
fpp3-package fpp3: Data for "Forecasting: Principles and Practice" (3rd Edition)
canadian_gas Monthly Canadian gas production
fpp3_conflicts Conflicts between fpp3 packages and other packages
us_change Percentage changes in economic variables in the USA.
guinea_rice Rice production (Guinea)
No Results!

Last month downloads


Include our badge in your README