applyGenTimeDist: Calculate matrix of generation time distribution for cities...

Description Usage Arguments Value Examples

View source: R/Rt_functions.R

Description

Calculate the generation time for cities or from meteorological stations

Usage

1
applyGenTimeDist(cities, stations, cid10 = "A90", datasource = con, ...)

Arguments

cities

: vector of geocodes

stations

: vector of meteorological stations

cid10

: "A90" for dengue, "A92" for chikungunya, "A92.8" for zika

datasource

: sql connection

ini

: initial date (Date or epidemiological week)

end

: final date (Date or epidemiological week)

Value

list of generation time distributions matrices

Examples

1
2
3
cid <- getCidades(uf="Rio de Janeiro")$municipio_geocodigo
gt <- applyGenTimeDist(stations = c("SBGL","SBJR"), cid10 = "A90")
system.time(gt <- applyGenTimeDist(cities = cid, cid10 = "A90"))

claudia-codeco/AlertTools documentation built on Aug. 12, 2021, 9:58 a.m.