add_node_tip: Add one tip

View source: R/output_treeGenerator.r

add_node_tipR Documentation

Add one tip

Description

Add a tip to the transmission tree corresponding to the sampled individual.

Usage

add_node_tip(tree, host, time, label, state)

Arguments

tree

transmission tree of class treedata, result of getTransmissionTree

host

ID of the host

time

time of the sampling event

label

label of the new tip to be added

state

state of the sampled individual

Value

modified tree, with on extra tip of length zero at the right place of the tree


slequime/nosoi documentation built on Feb. 15, 2024, 3:31 p.m.