loadCoords {SMITIDstruct} | R Documentation |
loadCoords
Description
Load Hosts states
Usage
loadCoords(lhost, dfCoords, id = "ID")
Arguments
lhost |
a HostSet |
dfCoords |
a data.frame with host ID, time and longitude latitude values |
id |
colname for host ID |
Value
lhost updated
Examples
path = system.file("extdata", "data-simul/", package="SMITIDstruct")
lhost <- list()
lhost <- loadTree(lhost,paste(path,"/tree.txt",sep=''))
coords <- read.table(file=paste(path,"/hosts_coords.txt",sep=''), header=TRUE, check.names=FALSE)
lhost <- loadCoords(lhost,coords)
[Package SMITIDstruct version 0.0.5 Index]