buildSpike: Build Spikes in the Data Distribution

View source: R/buildSpike.R

buildSpikeR Documentation

Build Spikes in the Data Distribution

Description

Builds spikes in the data distribution. For example, in retail industry transactions are generally higher during the holiday season such as December. This function is used to set the same.

Usage

buildSpike(distr, spike)

Arguments

distr

numeric vector. This is the input vector for which the spike value needs to be set.

spike

A number. This represents the seasonality of data. It can take any value from 1 to 12. These numbers represent months in a year, from January to December respectively. For example, if the spike is set to 12, it means that December has the highest number of transactions. This is an internal function and is currently not exported in the package.

Value

A numeric vector reordered


conjurer documentation built on Jan. 22, 2023, 1:16 a.m.