generatenetworkslices: Generates multiple time-aggregated networks from a...

View source: R/generatenetworkslices.R

generatenetworkslicesR Documentation

Generates multiple time-aggregated networks from a time-ordered network

Description

Constructs weighted directed networks from all events occurring within certain time windows. Weight is equal to the number of interactions observed during the time window.

Usage

generatenetworkslices(g, timedeltas)

Arguments

g

The time-ordered network to be sliced.

timedeltas

A n x 2 matrix, where each row contains a set of start (first column) and stop (second column) times at which the network should be sliced.

Value

A list containing n time-aggregated networks corresponding to the n time windows.

Author(s)

Benjamin Blonder bblonder@email.arizona.edu.

See Also

plotnetworkslices, generatetimedeltas, generatetimelags~~~

Examples

data(ants)
allindivs <- c(union(ants$VertexFrom, ants$VertexTo), "NULL1", "NULL2")
g <- generatetonetwork(ants, allindivs)
td100 <- generatetimedeltas(0,1500,100)
ns100 <- generatenetworkslices(g, td100)
plotnetworkslices(ns100, td100)


timeordered documentation built on Aug. 21, 2023, 1:06 a.m.