Learn R Programming

timeordered (version 1.0.1)

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)

Value

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

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.

Author

Benjamin Blonder bblonder@email.arizona.edu.

See Also

generatenetworkslices

Examples

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

Run the code above in your browser using DataLab