part_to_cluster: Take the partitions by generations and turn it into a full...

Description Usage Arguments Value

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

Description

Take the partitions by generations and turn it into a full transmission path

Usage

1
part_to_cluster(k, part)

Arguments

k

cluster ID

part

matrix of dimension g x 1, the number in each generation

Value

data frame with the following columns

cluster_id

cluster_id

gen

generation number (1 to n)

gen_n

number in generation

id

Cx-Gy-Nz, cluster x, generation y, number z makes up the unique ID

cluster_size

number in cluster k (n)

infector_id

who infected this person

n_inf

number of infections caused by this person


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