Learn R Programming

timeordered (version 0.9.6)

generatetimeaggregatednetwork: Constructs a weighted time-aggregated network from a time-ordered network by aggregating interactions occurring between a start and stop time. Weights are stored as E(g)$weight.

Description

-

Usage

generatetimeaggregatednetwork(g, starttime, stoptime)

Arguments

g
The time-ordered network to be aggregated
starttime
The time at which to begin aggregating interactions.
stoptime
The time at which to stop aggregating interactions.

Value

  • A weighted time-aggregated network whose edge weights equal the number of interactions between those vertices in the time window.

See Also

generatenetworkslices

Examples

Run this code
data(ants)
allindivs <- c(union(ants$VertexFrom, ants$VertexTo), "NULL1", "NULL2")
g <- generatetonetwork(ants, allindivs)
tan500 <- generatetimeaggregatednetwork(g, 0, 500)
plottanet(tan500)

Run the code above in your browser using DataLab