This function counts VBD cases per agem.

cases_by_agem(path_vbd, vbd, status_case, country, cve_edo = NULL)

Arguments

path_vbd

Is the directory where the file is located.

vbd

Is the parameter for define the vector-borne diseases

status_case

It is a numerical value to select the Status of the case. There are three options, 1 for the probable cases database, 2 for the confirmed cases database, and 3 for the discarded cases dataset.

country

It is a logical value to define if the result is by state (set TRUE) or by country (set FALSE)

cve_edo

Is a string of the state id-

Value

a sf object

Examples

cases_by_agem(".",vbd = "DENGUE",status_case = 2, country = TRUE)
#> Error in data.table::fread(l, header = TRUE, quote = "", encoding = "Latin-1",     fill = TRUE): input= must be a single character string containing a file name, a system command containing at least one space, a URL starting 'http[s]://', 'ftp[s]://' or 'file://', or, the input data itself containing at least one \n or \r