powered by
load sources and offsprings from file
loadTree(lhost = list(), file = "tree.txt", source = "ID-source", receptor = "ID-receptor", tinf = "Tinf", weight = "Weight")
a HostSet
a file containing tree data
column name for source ID
column name for receptor ID
column name for infection Time
column name of infection weight
the lhost param update with sources and offsprings
# NOT RUN { path = system.file("extdata", "data-simul/", package="SMITIDstruct") lhost <- list() class(lhost) <- "hostSet" lhost <- loadTree(lhost,paste(path,"/tree.txt",sep='')) # }
Run the code above in your browser using DataLab