Skip to contents

What depends on some features: the features themselves and every feature that requires one of them (their "down-set", or impact set).

Usage

vp_downset(model, features)

Arguments

model

A model, from vp_generate() or vp_read(), in its complete or its minimal form.

features

The names of one or more variable features of the model.

Value

A tibble with the columns feature and depends_on (the first given feature that it depends on; a given feature depends on itself).

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_downset(band, "Screen")
#> # A tibble: 9 × 2
#>   feature            depends_on
#>   <chr>              <chr>     
#> 1 Screen             Screen    
#> 2 TouchScreen        Screen    
#> 3 OLED               Screen    
#> 4 CapacityButton     Screen    
#> 5 ContactlessPayment Screen    
#> 6 MovementFilter     Screen    
#> 7 BLEv40             Screen    
#> 8 BLEv42             Screen    
#> 9 NFC                Screen