Skip to contents

How much each team depends on the others: its features, the links inside it and towards other teams, how many teams it is linked to, and how many of its features are free (no link to another team: the team decides them alone). A measure, like vp_team_links().

Usage

vp_teams(model, teams)

Arguments

model

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

teams

The team of each feature: a tibble with the columns feature and team, or a named character vector (feature = team).

Value

A tibble with team, features, links_inside, links_outside, teams_linked, free_features and free_share (free features / features).

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
teams <- c(
  Screen = "display",
  TouchScreen = "display",
  OLED = "display",
  CapacityButton = "display",
  ContactlessPayment = "payments",
  NFC = "payments",
  MovementFilter = "sensors",
  HeartRateSensor = "sensors",
  BLEv40 = "radio",
  BLEv42 = "radio",
  BT40 = "radio"
)
vp_teams(band, teams)
#> # A tibble: 4 × 7
#>   team     features links_inside links_outside teams_linked free_features
#>   <chr>       <int>        <int>         <int>        <int>         <int>
#> 1 display         4            9            28            3             0
#> 2 payments        2            2            18            3             0
#> 3 radio           3            3            25            3             0
#> 4 sensors         2            1            13            3             0
#> # ℹ 1 more variable: free_share <dbl>