Description Usage Arguments Value Examples
View source: R/alert_functions.R
Function to write the output of the pipeline into the local SQLite database. The input must be the object created by the function historico.alerta.
1 | write_alerta_local(d, datasource = con)
|
d |
object created by tabela_historico() |
datasource |
SQLite conn |
the same data.frame from the input
1 2 3 4 5 6 7 8 9 10 | NOT USE: con <- dbConnect(RSQLite::SQLite(), "../../AlertaDengueAnalise/mydengue.sqlite")
# Parameters for the model
cidades <- getCidades(regional = "Norte",uf = "Rio de Janeiro",datasource = con)
res <- pipe_infodengue(cities = cidades$municipio_geocodigo, cid10 = "A90",
finalday= "2021-07-12",nowcasting="none")
restab <- tabela_historico(res)
# NOT RUN
t1 <- Sys.time()
write_alerta_local(restab)
t2 <- Sys.time() - t1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.