Usage
edgeDuration(nd, mode = c("duration", "counts"), subject = c("edges", "spells", "dyads"),
e = seq_along(nd$mel), start = NULL, end = NULL, active.default = TRUE)
vertexDuration(nd, mode = c("duration", "counts"), subject = c("vertices", "spells"),
v = seq_len(network.size(nd)), active.default = TRUE)Arguments
nd
networkDynamic object to be evaluated
mode
option determining if the 'duration' of the spells should be summed, or simply the 'counts' of the number of spells. The later option is useful when the network contains events of zero duration.
subject
option describing the unit of analysis that the durations or counts should be aggregated at. 'spells' considers each event independently. For tVertexDuration, 'vertices' sums all the spells corresponding to a single
e
numeric vector of edge ids to consider.
v
numeric vector of vertex ids to consider.
start
optional numeric value to be used to censor onset times. (not yet supported for vertices, must use net.obs.period instead.) end
optional numeric value to be used to censor terminus times. (not yet supported for vertices, must use net.obs.period instead.) active.default
logial, should edges or vertices with no timing information be considered always active by default?