How long new links last. A link is followed from the version in which it
appears between two features that both existed before; the share still
present is measured 1, 2, ... horizon versions later.
Usage
vp_link_lifetime(
history,
graph = c("excludes", "requires", "atleastone"),
horizon = 5
)Arguments
- history
A history: the versions of a model, from
vp_read_history()orvp_history(), oldest first.- graph
Which graph:
"requires","excludes"or"atleastone"(the last one needsor_graph = TRUEinvp_generate()).- horizon
How many versions to follow each link.
Value
A tibble with age (versions after it appeared), followed (links
that can be followed that far), still_present and share.
See also
Other evolution:
vp_attachment(),
vp_auc(),
vp_changed_links(),
vp_co_change(),
vp_community_history(),
vp_compare(),
vp_disruptions(),
vp_edit_type(),
vp_eras(),
vp_feature_churn(),
vp_feature_states(),
vp_flip_flops(),
vp_forecast_size(),
vp_growth(),
vp_history_apply(),
vp_history_changes(),
vp_history_sizes(),
vp_hub_stability(),
vp_interaction_changes(),
vp_life_cycle(),
vp_prediction_table(),
vp_rename(),
vp_rename_candidates(),
vp_ripple(),
vp_state_moves(),
vp_top_movers(),
vp_version_distance()
Examples
gens <- c("miband1", "miband2", "miband3", "miband4", "miband6")
history <- vp_history(
vp_example(paste0(gens, "_realized.uvl")),
versions = gens,
or_graph = TRUE
)
vp_link_lifetime(history, "requires", horizon = 2)
#> # A tibble: 2 × 4
#> age followed still_present share
#> <int> <dbl> <dbl> <dbl>
#> 1 1 22 13 0.591
#> 2 2 11 11 1