Learn R Programming

timeordered (version 1.0.1)

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)

Value

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

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.

Author

Benjamin Blonder bblonder@email.arizona.edu.

See Also

plotnetworkslices, generatetimedeltas, generatetimelags~~~

Examples

Run this code
data(ants)
allindivs <- c(union(as.character(ants$VertexFrom), as.character(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