init_agents: Initialize Agents

Description Usage Arguments Value Examples

View source: R/Base_Functions.R

Description

Make one list of agents that contain both healthcare workers and patients, which is needed for the C++ disease propogation function

Usage

1
2
3
4
5
6
7
8
init_agents(
  nhcw = 800L,
  npat = 100L,
  hcw_feature_names,
  pat_feature_names,
  tibble_pat,
  tibble_hcw
)

Arguments

nhcw

Number of healthcare workers in the simulation

npat

Number of patients in the simulation

hcw_feature_names

Individual healthcare worker feature names

pat_feature_names

Individual patient feature names

tibble_pat

Tibble of patients

tibble_hcw

Tibble of healthcare workers

Value

A list containing two objects: the list of agents is the first; the initial set of infected agents is the second

Examples

1
all_agents <- init_agents(nhcw = 800L, npat = 100L, hcw_feature_names, pat_feature_names, tibble_pat, tibble_hcw)

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