Learn R Programming

⚠️There's a newer version (1.0.1) of this package.Take me there.

fpp3

Overview

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.

Installation

You can install the stable version from CRAN.

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

You can install the development version from Github

# install.packages("remotes")
remotes::install_github("robjhyndman/fpp3-package")

Usage

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:

library(fpp3)
#> ── Attaching packages ──────────────────────────────────────────── fpp3 0.4.0 ──
#> ✓ tibble      3.0.6          ✓ tsibble     0.9.4     
#> ✓ dplyr       1.0.3          ✓ tsibbledata 0.2.0.9000
#> ✓ tidyr       1.1.2          ✓ feasts      0.1.6.9000
#> ✓ lubridate   1.7.9.2        ✓ fable       0.3.0     
#> ✓ ggplot2     3.3.3
#> ── Conflicts ───────────────────────────────────────────────── fpp3_conflicts ──
#> x lubridate::date()    masks base::date()
#> x dplyr::filter()      masks stats::filter()
#> x tsibble::intersect() masks base::intersect()
#> x tsibble::interval()  masks lubridate::interval()
#> x dplyr::lag()         masks stats::lag()
#> x tsibble::setdiff()   masks base::setdiff()
#> x tsibble::union()     masks base::union()

Copy Link

Version

Install

install.packages('fpp3')

Monthly Downloads

14,677

Version

0.4.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

February 6th, 2021

Functions in fpp3 (0.4.0)

boston_marathon

Boston marathon winning times since 1897
bank_calls

Call volume for a large North American bank
fpp3_packages

List all packages loaded by fpp3
aus_arrivals

International Arrivals to Australia
prices

Price series for various commodities
insurance

Insurance quotations and advertising expenditure
canadian_gas

Monthly Canadian gas production
guinea_rice

Rice production (Guinea)
aus_airpassengers

Air Transport Passengers Australia
aus_accommodation

Australian accommodation data
fpp3_conflicts

Conflicts between fpp3 packages and other packages
fpp3-package

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

Sales for a souvenir shop
us_employment

US monthly employment data
us_change

Percentage changes in economic variables in the USA.
us_gasoline

US finished motor gasoline product supplied.