seedPathogen: Add single individuals infected with a number of pathogens

Description Usage Arguments Value Examples

Description

Allows addition of an infected individual of 1 or more pathogens.

Usage

1
seedPathogen(pop, pathogens = 1, n = 1, diffCols = TRUE)

Arguments

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

Value

An update object of same structure as from makePop

Examples

1
2
p <- makePop()
u <- seedPathogen(p, pathogens = 1:p$parameters['nPathogens'])

timcdlucas/MetapopEpi documentation built on May 31, 2019, 1:47 p.m.