generatetimeaggregatednetwork: Constructs a weighted time-aggregated network from a...

View source: R/generatetimeaggregatednetwork.R

generatetimeaggregatednetworkR 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

generatenetworkslices

Examples

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


bblonder/timeordered documentation built on Aug. 29, 2023, 9:15 a.m.