depart_nodes: Depart Nodes from the netsim_dat Object

View source: R/update.R

depart_nodesR Documentation

Depart Nodes from the netsim_dat Object

Description

Depart Nodes from the netsim_dat Object

Usage

depart_nodes(dat, departures)

Arguments

dat

the netsim_dat object

departures

the vertex ids of nodes to depart

Details

If tergmLite is FALSE, the vertex ids departures are deactivated (from the current timestep onward) in each networkDynamic stored in dat$nw. If tergmLite is TRUE, the vertex ids departures are deleted from dat$el, dat$attr, and dat$net_attr.

Value

the updated netsim_dat object with the nodes in departures departed


EpiModel documentation built on Oct. 12, 2024, 1:06 a.m.