count_infections: Count the number of infections each person gives

Description Usage Arguments Details Value

View source: R/simulate-conditional-bp.R

Description

Count the number of infections each person gives

Usage

1

Arguments

df

data frame with the following columns

id

cx-gy-nz, cluster x, generation y, number z makes up the unique ID

infector_id

cx-gy-nz, cluster x, generation y, number z makes up the unique ID

Details

the count is the number of people the person with the ID infected, i.e. the number of times their id appears in infector_id column (can be zero)

Value

counts corresponding to each id.


skgallagher/TBornotTB documentation built on April 21, 2020, 1:19 p.m.