Skip to contents

The atomic sets: groups of features that require each other, so that a product has all of them or none.

Usage

vp_atomic_sets(model)

Arguments

model

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

Value

A tibble with one row per feature of a set of two or more: set (a number), feature, and representative (the first feature of the set, which stands for it in the skeleton).

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_atomic_sets(band)
#> # A tibble: 5 × 3
#>     set feature            representative    
#>   <int> <chr>              <chr>             
#> 1     1 Screen             Screen            
#> 2     1 OLED               Screen            
#> 3     1 CapacityButton     Screen            
#> 4     2 ContactlessPayment ContactlessPayment
#> 5     2 NFC                ContactlessPayment