Learn R Programming

timeordered (version 0.9.6)

generatenetworkslices: 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.

See Also

plotnetworkslices, generatetimedeltas, generatetimelags~~~

Examples

Run this code
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)

Run the code above in your browser using DataLab