qoq: Current full period quarter over previous full period quarter

View source: R/time_intelligence_classes.R

qoqR Documentation

Current full period quarter over previous full period quarter

Description

A short description...

Usage

qoq(.data, .date, .value, calendar_type, lag_n = 1)

Arguments

.data

tibble or dbi object (either grouped or ungrouped)

.date

the date column to group by

.value

the value column to summarize

calendar_type

select either 'standard' or '5-5-4' calendar, see 'Details' for additional information

lag_n

the number of periods to lag

Value

ti object

See Also

Other time_intelligence: atd(), dod(), mom(), momtd(), mtd(), mtdopm(), pmtd(), pqtd(), pwtd(), pytd(), qoqtd(), qtd(), qtdopq(), wow(), wowtd(), wtd(), wtdopw(), yoy(), yoytd(), ytd(), ytdopy()

Examples

qoq(sales,.date=order_date,.value=quantity,calendar_type='standard',lag_n=1)

alejandrohagan/fpaR documentation built on April 12, 2025, 9:51 a.m.