write_parameters: City's parameterization.

Description Usage Arguments Value Examples

View source: R/utility_tools.R

Description

Write the alert parameters for each city into the database, to be used in the update.alert. Currently, the parameters are: "limiar_preseason", "limiar_posseason", "limiar_epidemico,"varcli", "varcli2", "clicrit", "clicrit2" , "cid10", "codmodelo". City must be already in the regionais table.

Usage

1
write_parameters(city, cid10, params, overwrite = FALSE, datasource = con)

Arguments

params

vector of the names of the params to be inserted in the table. Limiar is given as incidence. It can be a subset of the default.

Value

the new line in the parameters table

Examples

1
2
3
pars = data.frame(municipio_geocodigo = 3506003,limiar_preseason = 4.50243, limiar_posseason = 3.962566, 
limiar_epidemico = 67.72364, varcli = "temp_min", clicrit = 22, cid10 = "A90", codmodelo = "Af") 
res = write_parameters(params$municipio_geocodigo, params$cid10, params = pars)

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