seedPathogen: Add single individuals infected with a number of pathogens

Description Usage Arguments Value Examples

View source: R/pathogenDiversity.R

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 27, 2017, 8:37 a.m.