loadTree {SMITIDstruct}R Documentation

loadTree

Description

load sources and offsprings from file

Usage

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

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

[Package SMITIDstruct version 0.0.5 Index]