quarterly_filter: Filter by quarter in prepartion for calculating metrics

Description Usage Arguments See Also

View source: R/dashboard-prep.R

Description

There are 2 basic filter scenarios: (1) the select_quarter is less than 4 (i.e., partial year) and records for later quarters are removed, or (2) the current quarter (quarter argument) is behind select_quarter, in which case the most recent year is dropped.

Usage

1
quarterly_filter(df, quarter, select_quarter, yrs)

Arguments

df

data frame that holds data (e.g., sales or license history) for selected permission

quarter

current quarter

select_quarter

quarter to be summarized

yrs

years to summarize

See Also

Other functions to prepare data for summarization: aggregate_pop(), extrapolate_pop(), factor_age_acs(), prep_pop(), quarterly_lapse(), recode_history()


southwick-associates/sadash documentation built on Jan. 6, 2022, 5:17 p.m.