Creates a TemporalInfo object to track dates and time resolution.

TemporalInfo(start = 1, resolution = 1)

Arguments

start

Start date (Date, POSIXct, or integer)

resolution

Time resolution (integer for generic, or period object)

Value

A TemporalInfo object

Examples

if (FALSE) { # \dontrun{
# Simple integer indexing
temp_info <- TemporalInfo(start = 1, resolution = 1)

# Date-based
temp_info <- TemporalInfo(start = as.Date("2024-01-01"), resolution = 1)
} # }