Time windows
stats-window.RdExtract the subset of a "timeDate" object observed between two
time stamps.
Examples
## timeCalendar
# monthly dates in current year
tS = timeCalendar()
tS
#> GMT
#> [1] [2026-01-01] [2026-02-01] [2026-03-01] [2026-04-01] [2026-05-01]
#> [6] [2026-06-01] [2026-07-01] [2026-08-01] [2026-09-01] [2026-10-01]
#> [11] [2026-11-01] [2026-12-01]
## window
# 2nd quarter window:
tS[4:6]
#> GMT
#> [1] [2026-04-01] [2026-05-01] [2026-06-01]
window(tS, tS[4], tS[6])
#> GMT
#> [1] [2026-04-01] [2026-05-01] [2026-06-01]