Skip to contents

The state of every feature in every version, in long format (one row per feature and version).

Usage

vp_feature_states(history)

Arguments

history

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

Value

A tibble with version, feature and state ("variable", "core", "dead" or "absent").

Examples

gens <- c("miband1", "miband2", "miband3", "miband4", "miband6")
history <- vp_history(
  vp_example(paste0(gens, "_realized.uvl")),
  versions = gens,
  or_graph = TRUE
)
vp_feature_states(history)
#> # A tibble: 145 × 3
#>    version feature        state 
#>    <fct>   <chr>          <chr> 
#>  1 miband1 FitnessMonitor core  
#>  2 miband1 SleepTracker   core  
#>  3 miband1 VibrateAlert   core  
#>  4 miband1 Call           core  
#>  5 miband1 Notification   core  
#>  6 miband1 Pedometer      core  
#>  7 miband1 Accelerometer  core  
#>  8 miband1 BT40           core  
#>  9 miband1 Screen         absent
#> 10 miband1 OLED           absent
#> # ℹ 135 more rows