periodTable | R Documentation |
Generic method for create simple table of all selected periods. Used within 'dateToPeriod()'
periodTable(trans_df, periodicity, ...)
trans_df |
Transaction data.frame |
periodicity |
Periodicity option ('weekly', 'monthly', 'quarterly', 'annually') |
... |
Additional Arguments |
[data.frame] consisting of
Period number
start date of each period
end date of each period
name of the period
# Load data
data(ex_sales)
ex_sales$trans_date <- checkDate(ex_sales[['sale_date']], 'date')
# With a raw transaction data.frame
pt_df <- periodTable(trans_df = ex_sales,
periodicity = 'annual')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.