periodTable.equalfreq: Create a table of equal frequency (any frequency) periods

View source: R/dateToPeriod.R

periodTable.equalfreqR Documentation

Create a table of equal frequency (any frequency) periods

Description

Specific method for creating flexible frequency periods

Usage

## S3 method for class 'equalfreq'
periodTable(
  trans_df,
  periodicity,
  freq = NULL,
  start = NULL,
  first_date = NULL,
  last_date = NULL,
  ...
)

Arguments

trans_df

Transaction data.frame

periodicity

Periodicity option ('weekly', 'monthly', 'quarterly', 'annually')

freq

[30] Frequency width of each period in days

start

['first'] Where to start counting ('first' or 'last')

first_date

[NULL] If null, the data determines the first date. Else set your own. Note that the first_date must be outside of the range of transaction dates. It can only extend the time period, not clip it. That should be done else where.

last_date

[NULL] If null, the data determines the last date. Else set your own Note that the last_date must be outside of the range of transaction dates. It can only extend the time period, not clip it. That should be done else where.

...

Additional Arguments


andykrause/hpiR documentation built on Feb. 2, 2024, 8:13 p.m.