generatetimeaggregatednetwork {timeordered} | R Documentation |
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.
Author(s)
Benjamin Blonder bblonder@email.arizona.edu.
See Also
Examples
data(ants)
allindivs <- c(union(as.character(ants$VertexFrom), as.character(ants$VertexTo)), "NULL1", "NULL2")
g <- generatetonetwork(ants, allindivs)
tan500 <- generatetimeaggregatednetwork(g, 0, 500)
plottanet(tan500)
[Package timeordered version 1.0.1 Index]