pg_date_intervals: Get a sequence of date intervals

View source: R/utility.R

pg_date_intervalsR Documentation

Get a sequence of date intervals

Description

The start date is the last observed date in the first interval of the intervals you want to capture. E.g., if start date is 31 January 2010 with 1 month resolution, then the first interval goes from 1 January 2010 to 31 January 2010. The intervals are not necessary equal length.

Usage

pg_date_intervals(
  start_date = pgoptions$get_start_date(),
  end_date = pgoptions$get_end_date(),
  temporal_resolution = pgoptions$get_temporal_resolution()
)

Arguments

from

starting date

to

end date

by

increment of sequence. See details in base::seq.Date.

Value

Date interval vector

Examples

pg_date_intervals()

prio-data/priogrid documentation built on June 14, 2025, 11:06 p.m.