Features that may have been renamed between two versions. Features are
matched by name, so a renamed feature looks like one removed and one added.
This function pairs each removed feature with the added feature whose links
to the kept features are most alike (Jaccard index of their typed
neighbours), one to one (a maximum matching). With file, the pairs whose
names are alike too (name_similarity >= name_threshold) are written to it,
one old<tab>new per line, ready for vp_rename() (and for the command
strong4vm diff --rename).
Arguments
- old
The older version of a model (from
vp_generate()orvp_read()).- new
The newer version of the same model.
- threshold
The smallest similarity (of the links) to report.
- file
A file to write the accepted renames to; NULL (the default) writes nothing.
- name_threshold
The smallest name_similarity of a pair written to
file.
Value
A tibble with old, new, similarity (of their links, 1 = the
same) and name_similarity (of the names, 1 = equal), the most similar
first.
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_link_lifetime(),
vp_prediction_table(),
vp_rename(),
vp_ripple(),
vp_state_moves(),
vp_top_movers(),
vp_version_distance()
Examples
old <- vp_generate(vp_example("miband3_planned.uvl"), or_graph = TRUE)
new <- vp_generate(vp_example("miband3_realized.uvl"), or_graph = TRUE)
vp_rename_candidates(old, new, threshold = 0.3)
#> # A tibble: 0 × 4
#> # ℹ 4 variables: old <chr>, new <chr>, similarity <dbl>, name_similarity <dbl>