Learn R Programming

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. Additional data sets not used in the book are also included.

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")

Usage

library(fpp3) will load the following packages:

  • tibble, for tibbles, a modern re-imagining of data frames.
  • dplyr, for data manipulation.
  • tidyr, to tidy data.
  • lubridate, for dates/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)
#> 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()

Copy Link

Version

Install

install.packages('fpp3')

Monthly Downloads

14,677

Version

1.0.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

September 18th, 2024

Functions in fpp3 (1.0.1)

fpp3_packages

List all packages loaded by fpp3
otexts_views

OTexts page views
nsw_offences

Monthly offences in NSW
us_change

Percentage changes in economic variables in the USA.
bank_calls

Call volume for a large North American commercial bank
souvenirs

Sales for a souvenir shop
prices

Price series for various commodities
ny_childcare

New York childcare data
us_employment

US monthly employment data
us_gasoline

US finished motor gasoline product supplied.
aus_arrivals

International Arrivals to Australia
aus_births

Australian births data
aus_airpassengers

Air Transport Passengers Australia
aus_outbound

Monthly short term (<1 year) resident departures in Australia
aus_tobacco

Australian cigarette and tobacco expenditure
aus_inbound

Monthly short term (<1 year) visitor arrivals to Australia
insurance

Insurance quotations and advertising expenditure
aus_accommodation

Australian accommodation data
aus_fertility

Australian fertility rates
aus_migration

Australian migration data
aus_mortality

Australian mortality data
boston_marathon

Boston marathon winning times since 1897
melb_walkers

Average daily total pedestrian count in Melbourne
canadian_gas

Monthly Canadian gas production
guinea_rice

Rice production (Guinea)
aus_vehicle_sales

Australian vehicle sales
fpp3-package

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

Conflicts between fpp3 packages and other packages