Skip to contents

A reproducibly simulated seasonal monthly time series in tidy long form, for the time-series examples. It holds two product lines (indoor and outdoor), each with six years of monthly observations carrying a linear trend, a clear twelve-month seasonal cycle (with different seasonal peaks per line) and noise. The two-series shape exercises the multi-group timeseries_plot() path on first-party data; extracting one series as a monthly ts (frequency 12) lets decompose_plot() and acf_plot() reveal the trend and seasonality.

Usage

monthly_sales

Format

A data frame with 144 rows and 3 variables:

date

First day of the month (Date), from January 2018.

series

Product line (factor): indoor or outdoor.

sales

Monthly sales (units).

Source

Simulated; see data-raw/generate_datasets.R.

Details

The data are synthetic, generated by data-raw/generate_datasets.R with a fixed seed.