complete_periods: Complete periods

Description Usage Arguments Value See Also

View source: R/period.R

Description

Create a function to identify which elements in a vector of dates correspond to complete calendar periods.

Usage

1
2
3
4
5
complete_periods(
  period = c("quarter", "year"),
  by = c("month", "quarter"),
  start.mon = month.name
)

Arguments

period

One of 'quarter' (default) or 'year'.

by

One of 'month' (default) or 'quarter'.

start.mon

In which month does a year start (default is January)?

Value

A function.

See Also

complete_quarters for an application.


marberts/ppd documentation built on March 27, 2020, 7:21 p.m.