Description Usage Arguments Value Examples
View source: R/Base_Functions.R
Make one list of agents that contain both healthcare workers and patients, which is needed for the C++ disease propogation function
1 2 3 4 5 6 7 8 | init_agents(
nhcw = 800L,
npat = 100L,
hcw_feature_names,
pat_feature_names,
tibble_pat,
tibble_hcw
)
|
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 |
A list containing two objects: the list of agents is the first; the initial set of infected agents is the second
1 | all_agents <- init_agents(nhcw = 800L, npat = 100L, hcw_feature_names, pat_feature_names, tibble_pat, tibble_hcw)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.