Skip to contents

Where new features attach: for each step and each kept feature, how many direct dependants it had (in the skeleton) and how many of the new features require it directly in the new version.

Usage

vp_attachment(history)

Arguments

history

A history: the versions of a model, from vp_read_history() or vp_history(), oldest first.

Value

A tibble with step, version (the new one), feature, direct_dependants and new_dependants.

Examples

gens <- c("miband1", "miband2", "miband3", "miband4", "miband6")
history <- vp_history(
  vp_example(paste0(gens, "_realized.uvl")),
  versions = gens,
  or_graph = TRUE
)
vp_attachment(history)
#> # A tibble: 36 × 5
#>     step version feature         direct_dependants new_dependants
#>    <int> <fct>   <chr>                       <int>          <int>
#>  1     2 miband3 Screen                          0              1
#>  2     2 miband3 OLED                            0              1
#>  3     2 miband3 CapacityButton                  0              1
#>  4     2 miband3 MovementFilter                  0              0
#>  5     2 miband3 HeartRateSensor                 0              0
#>  6     2 miband3 BLEv40                          0              0
#>  7     2 miband3 BLEv42                          0              0
#>  8     2 miband3 BT40                            0              0
#>  9     3 miband4 Screen                          3              2
#> 10     3 miband4 TouchScreen                     0              1
#> # ℹ 26 more rows