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

View source: R/alert_functions.R

tabela_historico_intraR Documentation

Convert the alert object into a data.frame and calculate indicators for cities with subdivisions

Description

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

Usage

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

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)

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