tabela_historico_intra: Convert the alert object into a data.frame and calculate...

Description Usage Arguments Value Examples

View source: R/alert_functions.R

Description

Function to organize the alert results for easy reading and inserting in the database. Specific for municipalities with subdivisions.

Usage

1
tabela_historico_intra(obj, iniSE, lastSE, versao = Sys.Date())

Arguments

obj

object created by the pipeline.

versao

Default is current's date

ini_se

first week of the table. Default is the first date in obj.

last_se

last week of the table. Default is the last date in obj. To do.

Value

data.frame with the data to be written.

Examples

1
2
3
4
5
6
NOT RUN without connection
# Rio de Janeiro
alerio <- pipe_infodengue_intra(city = 3304557, datarelatorio=202105, 
delaymethod="bayesian", cid10 = "A90", dataini = "sinpri")
restab <- tabela_historico_intra(alerio, iniSE = 201801) 
tail(restab)

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