ancestors: Vector of infection ancestors

Description Usage Arguments Details Examples

View source: R/ancestors.R

Description

Provides the chain of infection leading to a specified individual.

Usage

1
ancestors(x, ID, sources)

Arguments

x

Individual ID.

ID

List of person IDs.

sources

List of infection sources, corresponding to ID.

Details

First element will be the ID x, last element will be zero.

Examples

1
2
data(outbreak)
ancestors(9, outbreak$epidata[,1], outbreak$epidata[,4])

seedy documentation built on May 29, 2017, 10:58 a.m.