Skip to contents

One row per (ancestor member, descendant member) pair across EVERY ordered timeframe pair — not just adjacent ones. The time-side twin of geoscales::geoscale_ancestry(); calendar_family() is the adjacent-pairs-only view.

Usage

calendar_ancestry(x)

Arguments

x

A Calendar.

Value

data.frame(parent_timeframe, parent, child_timeframe, child).

Examples

head(calendar_ancestry(calendar("q4_h24")))
#>   parent_timeframe parent child_timeframe  child
#> 1          QUARTER     Q1            HOUR Q1_h00
#> 2          QUARTER     Q1            HOUR Q1_h01
#> 3          QUARTER     Q1            HOUR Q1_h02
#> 4          QUARTER     Q1            HOUR Q1_h03
#> 5          QUARTER     Q1            HOUR Q1_h04
#> 6          QUARTER     Q1            HOUR Q1_h05