contacts: Contact Matrix

Description Usage Arguments Value Examples

View source: R/Base_Functions.R

Description

Randomly generate a symmetric matrix of contacts between agents

Usage

1
contacts(agents)

Arguments

agents

The list of agents, both patients and healthcare workers, who will be in the simulation

Value

A symmetric matrix of size NxN, where N is the number of agents, containing number of contacts between each individual agent for each timestep

Examples

1
contact_matrix <- contacts(agents)

PippintheFoolhardy/SimFunctions documentation built on Dec. 18, 2021, 7:43 a.m.