Description Usage Arguments Value Examples
View source: R/get_timeseries.R
Get time series of cases per APS in Rio de Janeiro (special case)
1 2 3 4 5 6 7 | getCasesinRio(
APSid,
lastday = Sys.Date(),
cid10 = "A90",
dataini = "sinpri",
datasource = con
)
|
APSid |
0(APS1), 1 (APS2.1), 2 (APS2.2), 3(APS3.1), 4(APS3.2), 5(APS3.3), 6(APS4), , 7(APS5.1), 8(APS5.2), 9(APS5.3) |
lastday |
end date of the time series |
cid10 |
cid 10 disease code. A90 = dengue (default) , A920 = chikungunia |
dataini |
"sinpri" or "notific"(default) |
datasource |
Posgresql connection to project's database |
data.frame with the data aggregated per health district and week
1 2 3 4 5 | NOT USE: con <- dbConnect(RSQLite::SQLite(), "../../AlertaDengueAnalise/mydengue.sqlite")
dC = getCasesinRio(APSid = 0:9, datasource = con) # Rio de Janeiro
# Chikungunya:
dC1s = getCasesinRio(APSid = 0, cid10 = "A920", dataini = "sinpri", datasource = con) # Rio de Janeiro
tail(dC1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.