Skip to contents

Summarize all snapshots stored in a spec_history stack

Usage

history_summary(hist)

Arguments

hist

A spec_history object.

Value

A data.frame with columns index, is_current, label, and n_changes.

Examples

h <- spec_history(new_spec_ir())
history_push(h, new_spec_ir(hierarchy = list(levels = 1L, n_obs = 350L)), label = "N=350")
history_summary(h)
#>   index is_current                 label n_changes
#> 1     1      FALSE Initial specification         0
#> 2     2       TRUE                 N=350         1