Creates a schedule of events occurring in the quarters or semester specified.
in_quarter(..., fiscal_start = 1) in_semester(x)
... | A numeric vector of quarter specifications. |
---|---|
fiscal_start | For fiscal quarters, a numeric indicating the starting month of a fiscal year. Defaults to 1 (January). |
x | Numeric specifying which semester the events occur in (1 or 2). |
A schedule object.
my_dates <- seq.Date(from = as.Date("2000-01-01"), to = as.Date("2000-12-01"), by = "1 month") happen(in_quarter(1), my_dates)#> [1] TRUE TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE#> [1] TRUE TRUE TRUE FALSE FALSE FALSE TRUE TRUE TRUE FALSE FALSE FALSE#> [1] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE FALSE#> [1] FALSE TRUE TRUE TRUE FALSE FALSE FALSE TRUE TRUE TRUE FALSE FALSE#> [1] FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE TRUE TRUE TRUE TRUE