Description Usage Arguments Value Examples
Allows addition of an infected individual of 1 or more pathogens.
1 | seedPathogen(pop, pathogens = 1, n = 1, diffCols = TRUE)
|
pop |
A metapopulation object as created by makePop(). |
pathogens |
Character vector of which pathogens should be seeded |
n |
How many individuals should be infected. |
diffCols |
Logical. If True, pathogen infections are forced to be in different colonies. Allows n to be as big as meanColonySize but requires nColonies > nPathogens |
An update object of same structure as from makePop
1 2 | p <- makePop()
u <- seedPathogen(p, pathogens = 1:p$parameters['nPathogens'])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.