loadTree: loadTree

Description Usage Arguments Value Examples

Description

load sources and offsprings from file

Usage

1
2
loadTree(lhost = list(), file = "tree.txt", source = "ID-source",
  receptor = "ID-receptor", tinf = "Tinf", weight = "Weight")

Arguments

lhost

a HostSet

file

a file containing tree data

source

column name for source ID

receptor

column name for receptor ID

tinf

column name for infection Time

weight

column name of infection weight

Value

the lhost param update with sources and offsprings

Examples

1
2
3
4
path = system.file("extdata", "data-simul/", package="SMITIDstruct")
lhost <- list()
class(lhost) <- "hostSet"
lhost <- loadTree(lhost,paste(path,"/tree.txt",sep=''))

SMITIDstruct documentation built on June 14, 2019, 5:04 p.m.