get_partners: Get the Previous Partners of a Set of Indexes

Description Usage Arguments Value

View source: R/el_cuml.R

Description

Get the Previous Partners of a Set of Indexes

Usage

1
2
3
4
5
6
7
get_partners(
  dat,
  index_posit_ids,
  networks = NULL,
  max.age = Inf,
  only.active = FALSE
)

Arguments

dat

a Master list object of network models

index_posit_ids

the positional IDs of the indexes of interest

networks

the indexes of the networks to extract the partnerships from. If NULL (default) extract from all networks.

max.age

after how many steps a partnershipl that is no longer active should be removed from the results (default = Inf)

only.active

should the inactive partners be removed from the results (default = FALSE)

Value

a data.frame with 5 columns: index and partner, the unique_ids (see get_unique_ids) of the indexes and partners respectively. Start and stop, the timestep where the edges started and stopped. network, the network on which the partnership is.


EpiModel documentation built on Nov. 10, 2021, 1:09 a.m.