getCasesinRio: Get cases from an APS in Rio de Janeiro and aggregate them...

Description Usage Arguments Value Examples

View source: R/get_timeseries.R

Description

Get time series of cases per APS in Rio de Janeiro (special case)

Usage

1
2
3
4
5
6
7
getCasesinRio(
  APSid,
  lastday = Sys.Date(),
  cid10 = "A90",
  dataini = "sinpri",
  datasource = con
)

Arguments

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

Value

data.frame with the data aggregated per health district and week

Examples

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)

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