fpp3: Forecasting: Principles and Practice (3rd edition)

repository·master·Indexed 41 days ago

https://github.com/robjhyndman/fpp3

An R package providing datasets and a pre-configured environment for time series analysis as described in the book 'Forecasting: Principles and Practice (3rd edition)'. It integrates with the tidyverse ecosystem and automatically loads packages including tsibble, feasts, and fable for data manipulation, visualization, and forecasting.

Tokens
296
Snippets
2
Records
2
Agent score
50%

What's inside fpp3

  1. Install the fpp3 package

    master

    You can install the stable version of fpp3 from CRAN or the development version from GitHub using the pak package.

    To install the stable version:

    pak::pak("fpp3")

    To install the development version from GitHub:

    pak::pak("robjhyndman/fpp3")
  2. Use the fpp3 package

    master

    Loading the fpp3 package via library(fpp3) provides access to datasets used in the book Forecasting: Principles and Practice (3rd edition) and automatically loads a suite of tidyverse-compatible packages for time series analysis.

    When you load the library, the following packages are attached:

    • tibble: Modern data frames.
    • dplyr: Data manipulation.
    • tidyr: Data tidying.
    • lubridate: Date/time handling.
    • ggplot2: Data visualisation.
    • tsibble: Time series tibbles.
    • tsibbledata: Time series datasets.
    • ggtime: Time series visualisation.
    • feasts: Time series features and statistics.
    • fable: Model fitting and forecasting.

    Note on Conflicts: Loading fpp3 may mask functions from other loaded packages (e.g., dplyr::filter() masks stats::filter()). The package provides a summary of these conflicts upon loading.

    library(fpp3)