complete_periods: Complete periods

Description Usage Arguments Value Examples

View source: R/dates.R

Description

Find which elements in a vector of year months form complete quarters/years.

Usage

1
2
3

Arguments

x

A vector of dates, or something that can be coerced into one.

Value

A logical vector, the same length as x, that is TRUE whenever an element of x corresponds to a complete quarter/year in x, FALSE otherwise.

Examples

1
2
3
4
5
x <- seq(as.Date("2018-01-01"), as.Date("2019-11-01"), "month")

complete_quarters(x)

complete_years(x)

marberts/smart documentation built on March 9, 2021, 5:31 p.m.