Skip to contents

Gives the identity of a Calendar: its name and a hash of its structure, as "<name>@<hash>". The hash is computed from the timeframe names and the members of every leaf row at each timeframe (the finest timeframe being the leaf column), not from the shares, widths and weights or the declared units, so two calendars with the same structure and different weights have the same hash, and a sampled calendar differs from the full one it was taken from.

Usage

calendar_id(calendar)

Arguments

calendar

A Calendar.

Value

A single string.

See also

Examples

cal <- calendar("m12_h24")
calendar_id(cal)
#> [1] "m12_h24@c15c0ad6"
calendar_id(filter_calendar(cal, "MONTH", "m01"))
#> [1] "m12_h24[MONTH:m01]@97dc1aba"