Skip to contents

What some features need: the features themselves and every feature they require (their "up-set").

Usage

vp_upset(model, features)

Arguments

model

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

features

One feature or several.

Value

A tibble with the columns feature and brought_by (the first given feature that brings it; a given feature is brought by itself).

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_upset(band, "TouchScreen")
#> # A tibble: 6 × 2
#>   feature         brought_by 
#>   <chr>           <chr>      
#> 1 TouchScreen     TouchScreen
#> 2 Screen          TouchScreen
#> 3 OLED            TouchScreen
#> 4 CapacityButton  TouchScreen
#> 5 HeartRateSensor TouchScreen
#> 6 BLEv42          TouchScreen