These functions offer tools for splitting manynet-consistent objects (matrices, igraph, tidygraph, or network objects) into lists of networks.

  • to_egos() splits a network into ego (or focal) networks.

  • to_subgraphs() splits a network into subgraphs on some given node attribute.

  • to_layers() splits a multiplex network into its layers, i.e. a list of uniplex networks, one per tie type. Use to_layer(), or its alias to_layer(), to retain just one of them.

  • to_reporters() splits a cognitive social structure into the report of each of its reporters, one network per reporter. Use to_reporter() to retain just one of them, and from_reporters() to join them again.

  • to_components() splits a network into its components, ordered from the largest to the smallest. Use to_component() to retain just one of them.

  • to_times() splits a network into the network as it stood at each moment it records, however it records time. This is where new work on splitting a network by time belongs; to_waves() and to_slices() are the older, form-specific spellings.

  • to_waves() splits a panel network into a list of its waves.

  • to_slices() splits a network that increments its ties into the state it had accumulated to at each of the given time slice(s).

to_egos(.data, max_dist = 1, min_dist = 0, direction = c("out", "in"))

to_subgraphs(.data, attribute)

to_layers(.data)

to_reporters(.data)

to_targets(.data)

to_components(.data, connectivity = c("weak", "strong"))

to_waves(.data, attribute = "wave", panels = NULL, cumulative = FALSE)

to_times(.data, times = NULL, window = NULL, kernel = "uniform")

to_slices(.data, attribute = "time", slice = NULL)

Arguments

.data

An object of a {manynet}-consistent class:

  • adjacency or incidence matrix from {base} R

  • edgelist data.frame from {base} R or tbl/tbl_df from {tibble}

  • stocnet stocnet, from the {manynet} package

  • igraph igraph, from the {igraph} package

  • network network, from the {network} package

  • tidygraph tbl_graph, from the {tidygraph} package

max_dist

The maximum breadth of the neighbourhood. By default 1.

min_dist

The minimum breadth of the neighbourhood. By default 0. Increasing this to 1 excludes the ego, and 2 excludes ego's direct alters.

direction

Character string, “out” bases the measure on outgoing ties, “in” on incoming ties, and "all" on either/the sum of the two. By default "all".

attribute

One or two attributes used to slice data.

connectivity

Character string, "weak" treats a directed network's components as if the network were undirected, and "strong" requires ties in both directions between members. This is ignored for undirected networks, where the two notions coincide. Note that the default differs by function: marks that assert connectedness default to "strong", while functions that scope or split a network into components default to "weak".

panels

Would you like to select certain waves? NULL by default. That is, a list of networks for every available wave is returned. Users can also list specific waves they want to select.

cumulative

Whether to make wave ties cumulative. FALSE by default. That is, each wave is treated isolated.

times

The moments to return the network at. By default NULL, in which case every moment the network records is returned, as net_times() counts them.

window

The width of a window of the moments up to time, or NULL (the default) for no window. Two widths, c(before, after), give a window that also reaches past time, so that c(15, 15) gives a window centred on time. A width is in the units of the moments the network records: waves, years, or days where the moments are dates (or seconds where they are date-times). A difftime, such as as.difftime(30, units = "days"), is also accepted.

kernel

How each tie in a window is weighted by its distance from time. "uniform" (the default) weights every tie in the window the same, and so leaves the ties as they are. "triangular", "epanechnikov", and "gaussian" give a tie less weight the further it is from time. Only used with a window.

slice

Character string or character list indicating the date(s) or integer(s) range used to slice data (e.g slice = c(1:2, 3:4)).

Value

An object of the same class as the function was given, modified as explained in the function description, details, or section. Functions that split a network return a list of such objects.

Details

Not all functions have methods available for all object classes. Below are the currently implemented S3 methods:

              array data.frame default diff_model igraph matrix network stocnet
to_components                *       *                 *      *       *       *
to_egos                      *       *                 *      *       *       *
to_layers                    *       *                 *              *
to_reporters      *                  *                                        *
to_slices                            *                 *                      *
to_subgraphs                         *                 *              *       *
to_times                             *                 *                      *
to_waves                     *       *          *      *
              tbl_graph
to_components         *
to_egos               *
to_layers             *
to_reporters
to_slices             *
to_subgraphs          *
to_times              *
to_waves              *

to_times() returns the network as it stood at each moment it records, whichever way it records time, by calling to_time() on each in turn. to_waves() and to_slices() are the older, form-specific spellings: to_waves() splits a panel by its waves, and to_slices() accumulates an event network up to each of its moments. Unlike them, to_times() always returns a list, named by the moments and ordered by them, even where the network records only one, so that net_times(.data) and length(to_times(.data)) always agree.

With a window, to_times() returns a moving window: the ties recorded in the window up to each of the times (or around each, with two widths), weighted by the kernel, as to_time() describes. Where the times are closer together than the window is wide, the windows overlap, and a tie can be in more than one of them.

to_layers()

The layers of a multiplex network are held in a tie attribute, type in tidygraph/igraph objects and layer in 'stocnet' objects. Each layer is extracted by to_layer(), so that the layers returned here are the same networks as retrieving them one at a time, and the returned list is named by the tie types found in the network. Where a network holds no tie types it is already uniplex, and a list of length one is returned.

to_reporters()

Every node of a cognitive social structure is a reporter, so the list holds one network for each node, named by its label, including the reports of nodes that reported no ties. A reporter that did not report at all gives a network whose ties are all missing. Ties that no node reported, such as a layer taken from records, are seen in the same way by every reporter, and so are kept in every report, as to_aggregated(over = "by") keeps them. from_reporters() then joins them as reported by every reporter. A network that names no reporter is returned as a list of length one, as to_layers() returns a network that holds no layers. Egocentric data cannot be split this way, since each ego reports on its own alters; see to_egos().

to_targets()

Gossip names in 'about' the node each tie is about, as a cognitive social structure names in 'by' the node that reported it. to_targets() splits gossip into one network for each node, named by its label, of the ties about that node, as to_reporters() splits reports. Ties that are about no node are kept in every network. from_targets() joins them again. A network that names no target is returned as a list of length one.

Examples

  to_egos(ison_adolescents)
#> $Betty
#> 
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, undirected network of 2 adolescents and 1 friendship ties
#> # Transformed by exclusion: outside the ego network of Betty (6 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 2 × 1
#>   label
#>   <chr>
#> 1 Betty
#> 2 Sue  
#> 
#> ── Ties 
#> # A tibble: 1 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 
#> 
#> $Sue
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, undirected network of 5 adolescents and 6 friendship ties
#> # Transformed by exclusion: outside the ego network of Sue (3 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 5 × 1
#>   label
#>   <chr>
#> 1 Betty
#> 2 Sue  
#> 3 Alice
#> 4 Dale 
#> 5 Pam  
#> 
#> ── Ties 
#> # A tibble: 6 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 2     2     3
#> 3     2     4
#> 4     3     4
#> 5     2     5
#> 6     3     5
#> 
#> 
#> $Alice
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, undirected network of 5 adolescents and 7 friendship ties
#> # Transformed by exclusion: outside the ego network of Alice (3 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 5 × 1
#>   label
#>   <chr>
#> 1 Sue  
#> 2 Alice
#> 3 Jane 
#> 4 Dale 
#> 5 Pam  
#> 
#> ── Ties 
#> # A tibble: 7 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 2     2     3
#> 3     1     4
#> 4     2     4
#> 5     3     4
#> 6     1     5
#> # ℹ 1 more row
#> 
#> 
#> $Jane
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, undirected network of 3 adolescents and 3 friendship ties
#> # Transformed by exclusion: outside the ego network of Jane (5 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 3 × 1
#>   label
#>   <chr>
#> 1 Alice
#> 2 Jane 
#> 3 Dale 
#> 
#> ── Ties 
#> # A tibble: 3 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 2     1     3
#> 3     2     3
#> 
#> 
#> $Dale
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, undirected network of 4 adolescents and 5 friendship ties
#> # Transformed by exclusion: outside the ego network of Dale (4 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 4 × 1
#>   label
#>   <chr>
#> 1 Sue  
#> 2 Alice
#> 3 Jane 
#> 4 Dale 
#> 
#> ── Ties 
#> # A tibble: 5 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 2     2     3
#> 3     1     4
#> 4     2     4
#> 5     3     4
#> 
#> 
#> $Pam
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, undirected network of 4 adolescents and 4 friendship ties
#> # Transformed by exclusion: outside the ego network of Pam (4 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 4 × 1
#>   label
#>   <chr>
#> 1 Sue  
#> 2 Alice
#> 3 Pam  
#> 4 Carol
#> 
#> ── Ties 
#> # A tibble: 4 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 2     1     3
#> 3     2     3
#> 4     3     4
#> 
#> 
#> $Carol
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, undirected network of 3 adolescents and 2 friendship ties
#> # Transformed by exclusion: outside the ego network of Carol (5 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 3 × 1
#>   label
#>   <chr>
#> 1 Pam  
#> 2 Carol
#> 3 Tina 
#> 
#> ── Ties 
#> # A tibble: 2 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 2     2     3
#> 
#> 
#> $Tina
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, undirected network of 2 adolescents and 1 friendship ties
#> # Transformed by exclusion: outside the ego network of Tina (6 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 2 × 1
#>   label
#>   <chr>
#> 1 Carol
#> 2 Tina 
#> 
#> ── Ties 
#> # A tibble: 1 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 
#> 
  # graphs(to_egos(ison_adolescents,2))
ison_adolescents |>
  mutate(unicorn = sample(c("yes", "no"), 8,
                          replace = TRUE)) |>
  to_subgraphs(attribute = "unicorn")
#> [[1]]
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, undirected network of 6 adolescents and 8 friendship ties
#> # Transformed by exclusion: unicorn != no (2 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 6 × 2
#>   label unicorn
#>   <chr> <chr>  
#> 1 Betty no     
#> 2 Sue   no     
#> 3 Alice no     
#> 4 Jane  no     
#> 5 Dale  no     
#> 6 Pam   no     
#> 
#> ── Ties 
#> # A tibble: 8 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 2     2     3
#> 3     3     4
#> 4     2     5
#> 5     3     5
#> 6     4     5
#> # ℹ 2 more rows
#> 
#> 
#> [[2]]
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A labelled, undirected network of 2 adolescents and 1 friendship ties
#> # Transformed by exclusion: unicorn != yes (6 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 2 × 2
#>   label unicorn
#>   <chr> <chr>  
#> 1 Carol yes    
#> 2 Tina  yes    
#> 
#> ── Ties 
#> # A tibble: 1 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 
#> 
as_tidygraph(create_filled(5)) |>
  mutate_ties(type = sample(c("friend", "enemy"), 10, replace = TRUE)) |>
  to_layers()
#> $friend
#> # A tbl_graph: 5 nodes and 4 edges
#> #
#> # An unrooted tree
#> #
#> # Node Data: 5 × 0 (active)
#> #
#> # Edge Data: 4 × 2
#>    from    to
#>   <int> <int>
#> 1     1     2
#> 2     1     4
#> 3     1     5
#> # ℹ 1 more row
#> 
#> $enemy
#> # A tbl_graph: 5 nodes and 6 edges
#> #
#> # An undirected simple graph with 1 component
#> #
#> # Node Data: 5 × 0 (active)
#> #
#> # Edge Data: 6 × 2
#>    from    to
#>   <int> <int>
#> 1     1     3
#> 2     2     3
#> 3     2     4
#> # ℹ 3 more rows
#> 
to_reporters(as_stocnet(array(rbinom(27, 1, 0.5), c(3, 3, 3)),
                        over = "by"))
#> $`1`
#> # A complex, directed network of 3 nodes and 7 arcs
#> # Transformed by exclusion: not reported by 1 (10 ties excluded)
#> 
#> ── Ties 
#> # A tibble: 7 × 2
#>    from    to
#>   <int> <int>
#> 1     2     1
#> 2     3     1
#> 3     1     2
#> 4     2     2
#> 5     3     2
#> 6     1     3
#> # ℹ 1 more row
#> 
#> 
#> $`2`
#> # A complex, directed network of 3 nodes and 6 arcs
#> # Transformed by exclusion: not reported by 2 (11 ties excluded)
#> 
#> ── Ties 
#> # A tibble: 6 × 2
#>    from    to
#>   <int> <int>
#> 1     1     1
#> 2     2     1
#> 3     1     2
#> 4     2     2
#> 5     1     3
#> 6     2     3
#> 
#> 
#> $`3`
#> # A complex, directed network of 3 nodes and 4 arcs
#> # Transformed by exclusion: not reported by 3 (13 ties excluded)
#> 
#> ── Ties 
#> # A tibble: 4 × 2
#>    from    to
#>   <int> <int>
#> 1     1     1
#> 2     2     1
#> 3     1     3
#> 4     2     3
#> 
#> 
to_targets(as_stocnet(array(rbinom(27, 1, 0.5), c(3, 3, 3)),
                      over = "about"))
#> $`1`
#> # A complex, directed network of 3 nodes and 5 arcs
#> # Transformed by exclusion: not about 1 (8 ties excluded)
#> 
#> ── Ties 
#> # A tibble: 5 × 2
#>    from    to
#>   <int> <int>
#> 1     1     1
#> 2     3     1
#> 3     1     2
#> 4     3     2
#> 5     1     3
#> 
#> 
#> $`2`
#> # A complex, directed network of 3 nodes and 6 arcs
#> # Transformed by exclusion: not about 2 (7 ties excluded)
#> 
#> ── Ties 
#> # A tibble: 6 × 2
#>    from    to
#>   <int> <int>
#> 1     1     1
#> 2     2     1
#> 3     3     1
#> 4     3     2
#> 5     2     3
#> 6     3     3
#> 
#> 
#> $`3`
#> # A directed network of 3 nodes and 2 arcs
#> # Transformed by exclusion: not about 3 (11 ties excluded)
#> 
#> ── Ties 
#> # A tibble: 2 × 2
#>    from    to
#>   <int> <int>
#> 1     2     1
#> 2     1     3
#> 
#> 
  to_components(to_layer(fict_marvel, "relationship"))
#> [[1]]
#> ── # Marvel universe ───────────────────────────────────────────────────────────
#> # A labelled, complex, signed, undirected network of 50 nodes and 558
#> relationship ties (138 parallel)
#> # Transformed by exclusion and symmetrisation
#> 
#> ── Nodes 
#> # A tibble: 50 × 10
#>   label    Gender Appearances Attractive  Rich Intellect Omnilingual PowerOrigin
#>   <chr>    <chr>        <int>      <int> <int>     <int>       <int> <chr>      
#> 1 Abomina… Male           427          0     0         1           1 Radiation  
#> 2 Ant-Man  Male           589          1     0         1           0 Human      
#> 3 Apocaly… Male          1207          0     0         1           1 Mutant     
#> 4 Beast    Male          7609          1     0         1           0 Mutant     
#> 5 Black P… Male          2189          1     1         1           0 Human      
#> 6 Black W… Female        2907          1     0         1           0 Human      
#> # ℹ 44 more rows
#> # ℹ 2 more variables: UnarmedCombat <int>, ArmedCombat <int>
#> 
#> ── Ties 
#> # A tibble: 558 × 3
#>    from    to weight
#>   <int> <int>  <dbl>
#> 1     1     1     -1
#> 2     1     4     -1
#> 3     1    10     -1
#> 4     1    11     -1
#> 5     1    22     -1
#> 6     1    23     -1
#> # ℹ 552 more rows
#> 
#> 
#> [[2]]
#> ── # Marvel universe ───────────────────────────────────────────────────────────
#> # A labelled, weighted, undirected network of 1 node and 0 relationship ties
#> # Transformed by exclusion and symmetrisation
#> 
#> ── Nodes 
#> # A tibble: 1 × 10
#>   label Gender Appearances Attractive  Rich Intellect Omnilingual PowerOrigin
#>   <chr> <chr>        <int>      <int> <int>     <int>       <int> <chr>      
#> 1 Cable Male          2734          0     0         1           0 Mutant     
#> # ℹ 2 more variables: UnarmedCombat <int>, ArmedCombat <int>
#> 
#> ── Ties 
#> # A tibble: 0 × 3
#> # ℹ 3 variables: from <int>, to <int>, weight <dbl>
#> 
#> 
#> [[3]]
#> ── # Marvel universe ───────────────────────────────────────────────────────────
#> # A labelled, weighted, undirected network of 1 node and 0 relationship ties
#> # Transformed by exclusion and symmetrisation
#> 
#> ── Nodes 
#> # A tibble: 1 × 10
#>   label    Gender Appearances Attractive  Rich Intellect Omnilingual PowerOrigin
#>   <chr>    <chr>        <int>      <int> <int>     <int>       <int> <chr>      
#> 1 Iron Fi… Male          1789          0     1         1           0 Human      
#> # ℹ 2 more variables: UnarmedCombat <int>, ArmedCombat <int>
#> 
#> ── Ties 
#> # A tibble: 0 × 3
#> # ℹ 3 variables: from <int>, to <int>, weight <dbl>
#> 
#> 
#> [[4]]
#> ── # Marvel universe ───────────────────────────────────────────────────────────
#> # A labelled, weighted, undirected network of 1 node and 0 relationship ties
#> # Transformed by exclusion and symmetrisation
#> 
#> ── Nodes 
#> # A tibble: 1 × 10
#>   label    Gender Appearances Attractive  Rich Intellect Omnilingual PowerOrigin
#>   <chr>    <chr>        <int>      <int> <int>     <int>       <int> <chr>      
#> 1 Luke Ca… Male          2466          0     0         0           0 Human      
#> # ℹ 2 more variables: UnarmedCombat <int>, ArmedCombat <int>
#> 
#> ── Ties 
#> # A tibble: 0 × 3
#> # ℹ 3 variables: from <int>, to <int>, weight <dbl>
#> 
#> 
  # Strong decomposition of a directed network returns many small components,
  # ordered here from largest to smallest, so just the largest is shown:
  to_components(fict_starwars, connectivity = "strong")[[1]]
#> ── # Star Wars network data ────────────────────────────────────────────────────
#> # A longitudinal, labelled, complex, weighted, directed network of 46
#> characters and 274 interaction arcs over 7 waves
#> # Transformed by exclusion: not in component 1 (64 nodes excluded)
#> 
#> ── Nodes 
#> # A tibble: 46 × 12
#>   label       species homeworld sex   height hair_color eye_color skin_color
#>   <chr>       <chr>   <chr>     <chr>  <int> <chr>      <chr>     <chr>     
#> 1 Anakin      Human   Tatooine  male     188 blond      blue      fair      
#> 2 Bail Organa Human   Alderaan  male     191 black      brown     tan       
#> 3 Bib Fortuna Twi'lek Ryloth    male     180 none       pink      pale      
#> 4 Biggs       Human   Tatooine  male     183 black      brown     light     
#> # ℹ 42 more rows
#> # ℹ 4 more variables: birth_year <dbl>, mass <dbl>, faction <chr>, active <lgl>
#> 
#> ── Changes 
#> # A tibble: 82 × 4
#>    time  node var         value
#>   <int> <int> <chr>      <list>
#> 1     2     5 active  TRUE<chr>
#> 2     2     6 active FALSE<chr>
#> 3     2    10 active FALSE<chr>
#> 4     2    11 active  TRUE<chr>
#> # ℹ 78 more rows
#> 
#> ── Ties 
#> # A tibble: 274 × 4
#>    from    to weight  time
#>   <int> <int>  <int> <int>
#> 1    32    24      1     1
#> 2    30    43      1     1
#> 3    43    25      1     1
#> 4    32    43      1     1
#> # ℹ 270 more rows
#> 
ison_adolescents |>
  mutate_ties(wave = sample(1995:1998, 10, replace = TRUE)) |>
  to_waves(attribute = "wave")
#> $`1995`
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A longitudinal, labelled, undirected network of 8 adolescents and 2
#> friendship ties over 1 waves
#> # Transformed by exclusion: not tied at wave 1995 (8 ties excluded)
#> 
#> ── Nodes 
#> # A tibble: 8 × 1
#>   label
#>   <chr>
#> 1 Betty
#> 2 Sue  
#> 3 Alice
#> 4 Jane 
#> 5 Dale 
#> 6 Pam  
#> # ℹ 2 more rows
#> 
#> ── Ties 
#> # A tibble: 2 × 3
#>    from    to  time
#>   <int> <int> <int>
#> 1     2     5  1995
#> 2     2     6  1995
#> 
#> 
#> $`1996`
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A longitudinal, labelled, undirected network of 8 adolescents and 3
#> friendship ties over 1 waves
#> # Transformed by exclusion: not tied at wave 1996 (7 ties excluded)
#> 
#> ── Nodes 
#> # A tibble: 8 × 1
#>   label
#>   <chr>
#> 1 Betty
#> 2 Sue  
#> 3 Alice
#> 4 Jane 
#> 5 Dale 
#> 6 Pam  
#> # ℹ 2 more rows
#> 
#> ── Ties 
#> # A tibble: 3 × 3
#>    from    to  time
#>   <int> <int> <int>
#> 1     3     5  1996
#> 2     4     5  1996
#> 3     6     7  1996
#> 
#> 
#> $`1997`
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A longitudinal, labelled, undirected network of 8 adolescents and 2
#> friendship ties over 1 waves
#> # Transformed by exclusion: not tied at wave 1997 (8 ties excluded)
#> 
#> ── Nodes 
#> # A tibble: 8 × 1
#>   label
#>   <chr>
#> 1 Betty
#> 2 Sue  
#> 3 Alice
#> 4 Jane 
#> 5 Dale 
#> 6 Pam  
#> # ℹ 2 more rows
#> 
#> ── Ties 
#> # A tibble: 2 × 3
#>    from    to  time
#>   <int> <int> <int>
#> 1     2     3  1997
#> 2     3     6  1997
#> 
#> 
#> $`1998`
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A longitudinal, labelled, undirected network of 8 adolescents and 3
#> friendship ties over 1 waves
#> # Transformed by exclusion: not tied at wave 1998 (7 ties excluded)
#> 
#> ── Nodes 
#> # A tibble: 8 × 1
#>   label
#>   <chr>
#> 1 Betty
#> 2 Sue  
#> 3 Alice
#> 4 Jane 
#> 5 Dale 
#> 6 Pam  
#> # ℹ 2 more rows
#> 
#> ── Ties 
#> # A tibble: 3 × 3
#>    from    to  time
#>   <int> <int> <int>
#> 1     1     2  1998
#> 2     3     4  1998
#> 3     7     8  1998
#> 
#> 
  length(to_times(irps_wwi))
#> [1] 7
  to_times(ison_tailorshop)
#> $`1`
#> ── # Kapferer's Tailor Shop ────────────────────────────────────────────────────
#> # A labelled, multiplex, directed network of 39 workers and 109 instrumental
#> arcs and 158 sociational ties
#> # Transformed by exclusion: not tied at time 1 (370 ties excluded)
#> 
#> ── Nodes 
#> # A tibble: 39 × 1
#>   label   
#>   <chr>   
#> 1 Kamwefu 
#> 2 Nkumbula
#> 3 Abraham 
#> 4 Seams   
#> 5 Chipata 
#> 6 Donald  
#> # ℹ 33 more rows
#> 
#> ── Ties 
#> # A tibble: 267 × 3
#>    from    to layer       
#>   <int> <int> <chr>       
#> 1     3     1 instrumental
#> 2     4     1 instrumental
#> 3    14     1 instrumental
#> 4    11     2 instrumental
#> 5    12     2 instrumental
#> 6     1     3 instrumental
#> # ℹ 261 more rows
#> 
#> 
#> $`2`
#> ── # Kapferer's Tailor Shop ────────────────────────────────────────────────────
#> # A labelled, multiplex, directed network of 39 workers and 147 instrumental
#> arcs and 223 sociational ties
#> # Transformed by exclusion: not tied at time 2 (267 ties excluded)
#> 
#> ── Nodes 
#> # A tibble: 39 × 1
#>   label   
#>   <chr>   
#> 1 Kamwefu 
#> 2 Nkumbula
#> 3 Abraham 
#> 4 Seams   
#> 5 Chipata 
#> 6 Donald  
#> # ℹ 33 more rows
#> 
#> ── Ties 
#> # A tibble: 370 × 3
#>    from    to layer       
#>   <int> <int> <chr>       
#> 1     3     1 instrumental
#> 2    11     1 instrumental
#> 3     1     2 instrumental
#> 4     5     2 instrumental
#> 5    12     2 instrumental
#> 6    16     2 instrumental
#> # ℹ 364 more rows
#> 
#> 
  # A window of 30 days moved along in steps of a week:
  weeks <- seq(as.Date("2011-03-15"), as.Date("2011-06-30"), by = "week")
  to_times(irps_nuclear, weeks, window = 30)
#> $`2011-03-15`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 154 claim ties (26 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-03-15
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 154 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1     1   338     -1 FALSE  
#> 2     2   339      1 TRUE   
#> 3     3   340     -1 FALSE  
#> 4     4   341      1 TRUE   
#> 5     2   342     -1 TRUE   
#> 6     5   343      1 TRUE   
#> # ℹ 148 more rows
#> 
#> 
#> $`2011-03-22`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 298 claim ties (80 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-03-22
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 298 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1     1   338     -1 FALSE  
#> 2     2   339      1 TRUE   
#> 3     3   340     -1 FALSE  
#> 4     4   341      1 TRUE   
#> 5     2   342     -1 TRUE   
#> 6     5   343      1 TRUE   
#> # ℹ 292 more rows
#> 
#> 
#> $`2011-03-29`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 390 claim ties (120 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-03-29
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 390 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1     1   338     -1 FALSE  
#> 2     2   339      1 TRUE   
#> 3     3   340     -1 FALSE  
#> 4     4   341      1 TRUE   
#> 5     2   342     -1 TRUE   
#> 6     5   343      1 TRUE   
#> # ℹ 384 more rows
#> 
#> 
#> $`2011-04-05`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 490 claim ties (171 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-04-05
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 490 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1     1   338     -1 FALSE  
#> 2     2   339      1 TRUE   
#> 3     3   340     -1 FALSE  
#> 4     4   341      1 TRUE   
#> 5     2   342     -1 TRUE   
#> 6     5   343      1 TRUE   
#> # ℹ 484 more rows
#> 
#> 
#> $`2011-04-12`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 528 claim ties (167 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-04-12
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 528 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1    23   349     -1 FALSE  
#> 2     9   356      1 TRUE   
#> 3    24   339      1 FALSE  
#> 4    24   357     -1 FALSE  
#> 5     2   339      1 TRUE   
#> 6    24   347      1 FALSE  
#> # ℹ 522 more rows
#> 
#> 
#> $`2011-04-19`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 376 claim ties (121 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-04-19
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 376 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1    12   357     -1 TRUE   
#> 2    59   339      1 FALSE  
#> 3   117   350      1 FALSE  
#> 4    52   342     -1 TRUE   
#> 5     2   346      1 TRUE   
#> 6     2   344      1 TRUE   
#> # ℹ 370 more rows
#> 
#> 
#> $`2011-04-26`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 322 claim ties (85 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-04-26
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 322 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1   140   346      1 TRUE   
#> 2     5   346      1 TRUE   
#> 3    43   362      1 FALSE  
#> 4     5   341      1 TRUE   
#> 5     2   375      1 TRUE   
#> 6   141   341      1 TRUE   
#> # ℹ 316 more rows
#> 
#> 
#> $`2011-05-03`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 232 claim ties (42 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-05-03
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 232 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1     2   357      1 TRUE   
#> 2     2   346      1 TRUE   
#> 3   167   352      1 TRUE   
#> 4   167   368      1 TRUE   
#> 5     9   365      1 TRUE   
#> 6   168   351      1 TRUE   
#> # ℹ 226 more rows
#> 
#> 
#> $`2011-05-10`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 240 claim ties (28 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-05-10
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 240 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1   192   357     -1 FALSE  
#> 2   193   339     -1 FALSE  
#> 3   193   340      1 FALSE  
#> 4   194   347      1 FALSE  
#> 5   194   363      1 FALSE  
#> 6     5   346      1 TRUE   
#> # ℹ 234 more rows
#> 
#> 
#> $`2011-05-17`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 175 claim ties (17 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-05-17
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 175 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1   203   350      1 FALSE  
#> 2   204   350      1 FALSE  
#> 3   205   339      1 FALSE  
#> 4   206   350      1 FALSE  
#> 5   206   345      1 FALSE  
#> 6   207   341     -1 FALSE  
#> # ℹ 169 more rows
#> 
#> 
#> $`2011-05-24`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 196 claim ties (28 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-05-24
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 196 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1    42   357     -1 FALSE  
#> 2    42   356      1 FALSE  
#> 3   215   346      1 FALSE  
#> 4    61   342      1 FALSE  
#> 5   216   341      1 FALSE  
#> 6     5   346      1 TRUE   
#> # ℹ 190 more rows
#> 
#> 
#> $`2011-05-31`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 291 claim ties (68 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-05-31
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 291 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1   225   359     -1 TRUE   
#> 2   129   359      1 TRUE   
#> 3   226   359     -1 TRUE   
#> 4   227   359     -1 TRUE   
#> 5    40   341      1 TRUE   
#> 6     2   359      1 TRUE   
#> # ℹ 285 more rows
#> 
#> 
#> $`2011-06-07`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 313 claim ties (86 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-06-07
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 313 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1    40   365      1 TRUE   
#> 2    11   357     -1 TRUE   
#> 3    42   344      1 FALSE  
#> 4    56   367      1 FALSE  
#> 5    56   364      1 FALSE  
#> 6     4   341      1 TRUE   
#> # ℹ 307 more rows
#> 
#> 
#> $`2011-06-14`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 289 claim ties (68 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-06-14
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 289 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1   245   363      1 FALSE  
#> 2    99   347      1 FALSE  
#> 3    99   339      1 FALSE  
#> 4   246   365      1 FALSE  
#> 5   129   341      1 TRUE   
#> 6    24   341     -1 FALSE  
#> # ℹ 283 more rows
#> 
#> 
#> $`2011-06-21`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 293 claim ties (69 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-06-21
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 293 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1    17   359      1 TRUE   
#> 2   254   341     -1 FALSE  
#> 3   255   366     -1 FALSE  
#> 4   256   349     -1 FALSE  
#> 5   257   359     -1 TRUE   
#> 6    42   344      1 FALSE  
#> # ℹ 287 more rows
#> 
#> 
#> $`2011-06-28`
#> ── # German nuclear discourse network ──────────────────────────────────────────
#> # A dynamic, labelled, signed, two-mode network of 337 speakers and 54 concepts
#> and 216 claim ties (45 parallel)
#> # Transformed by exclusion: not tied in the 30 up to time 2011-06-28
#> 
#> ── Nodes 
#> # A tibble: 391 × 10
#>   label         mode  active politician govt  coalition office org   party power
#>   <chr>         <chr> <lgl>  <lgl>      <lgl> <lgl>     <lgl>  <chr> <chr> <int>
#> 1 VfEW          spea… TRUE   FALSE      FALSE NA        FALSE  VfEW  NA        0
#> 2 Angela Merkel spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        2
#> 3 Sunday Times  spea… TRUE   FALSE      FALSE NA        FALSE  Sund… NA        0
#> 4 SPD           spea… TRUE   TRUE       FALSE FALSE     FALSE  SPD   32        1
#> 5 Norbert Rött… spea… TRUE   TRUE       TRUE  TRUE      TRUE   CDU   31        1
#> 6 Torsten Krau… spea… TRUE   FALSE      FALSE NA        FALSE  Die … NA        0
#> # ℹ 385 more rows
#> 
#> ── Ties 
#> # A tibble: 216 × 4
#>    from    to weight default
#>   <int> <int>  <int> <lgl>  
#> 1     2   359      1 TRUE   
#> 2   274   341      1 FALSE  
#> 3   275   346     -1 TRUE   
#> 4   276   346      1 TRUE   
#> 5   171   359      1 FALSE  
#> 6   277   341      1 FALSE  
#> # ℹ 210 more rows
#> 
#> 
ison_adolescents |>
  mutate_ties(time = 1:10, increment = 1) |> 
  add_ties(c(1,2), list(time = 3, increment = -1)) |> 
  to_slices(slice = 7)
#> ── # The Adolescent Society ────────────────────────────────────────────────────
#> # A dynamic, labelled, undirected network of 8 adolescents and 6 friendship
#> ties
#> # Transformed by exclusion: after 7 (5 ties excluded)
#> 
#> ── Nodes 
#> # A tibble: 8 × 1
#>   label
#>   <chr>
#> 1 Betty
#> 2 Sue  
#> 3 Alice
#> 4 Jane 
#> 5 Dale 
#> 6 Pam  
#> # ℹ 2 more rows
#> 
#> ── Ties 
#> # A tibble: 6 × 3
#>    from    to weight
#>   <int> <int>  <dbl>
#> 1     2     3      1
#> 2     3     4      1
#> 3     2     5      1
#> 4     3     5      1
#> 5     4     5      1
#> 6     2     6      1
#>