read.cases: Function to extract case count for covered municipalities

View source: R/get_timeseries.R

read.casesR Documentation

Function to extract case count for covered municipalities

Description

Function read.cases extract notification data from database and aggregate by epiweek. Used by mem.

Usage

read.cases(start_year, end_year, cid10 = "A90", datasource = con, mun_list)

Arguments

start_year

first year of the time series

end_year

last year of the time series

cid10

cid 10 code. Dengue = "A90" (default), Chik = "A92.0", Zika = "A92.8"

datasource

Infodengue connection

mun_list

vector with the municipalities' 7 digit geocodes

Author(s)

Marcelo F C Gomes

Examples

dd <- read.cases(2019, 2020, mun_list = c(4108304, 3300936))
dd <- read.cases(2019, 2020, cid10 = "A92.0", mun_list = c(4108304, 3300936))

AlertaDengue/AlertTools documentation built on Nov. 27, 2024, 11:55 p.m.