genTrans  R Documentation 
Build Transaction Data
genTrans(cycles, trend, transactions, spike, outliers)
cycles 
This represents the cyclicality of data. It can take the following values

trend 
A number. This represents the slope of data distribution. It can take a value of 1 or 1. If the trend is set to value 1, then the aggregated monthly transactions will exhibit an upward trend from January to December and vice versa if it is set to 1. 
transactions 
A number. This represents the number of transactions to be generated. 
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. 
outliers 
A number. This signifies the presence of outliers. If set to value 1, then outliers are generated randomly. If set to value 0, then no outliers are generated. The presence of outliers is a very common occurrence and hence setting the outliers to 1 is recommended. However, there are instances where outliers are not needed. For example, if the objective of data generation is solely for visualization purposes then outliers may not be needed. 
A dataframe with day number and count of transactions on that day
df < genTrans(cycles = "y", trend = 1, transactions = 10000, spike = 10, outliers = 0) df < genTrans(cycles = "q", trend = 1, transactions = 32000, spike = 12, outliers = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.