get_sinesp_vde_data {BrazilCrime} | R Documentation |
get_sinesp_vde_data Function
Description
This function is responsible for collecting criminal data directly from the SINESP VDE database. The data collected by this function starts temporally in January 2015 and goes until December 2022 for each brazilian city, covering crimes such as: Estupro (Rape), Furto de veículo (Vehicle Theft), Homicídio doloso (Intentional Homicide), Lesão corporal seguida de morte (Bodily Injury Followed by Death), Roubo a instituição financeira (Robbery of Financial Institution), Roubo de carga (Cargo Theft), Roubo de veículo (Vehicle Robbery), Roubo seguido de morte (Latrocínio) (Robbery Followed by Death) and Tentativa de homicídio (Attempted Homicide).
Usage
get_sinesp_vde_data(
state = "all",
city = "all",
year = "all",
category = "all",
typology = "all",
granularity = "month"
)
Arguments
state |
State to be filtered. Character. |
city |
City to be filtered. Character. |
year |
Year of the crime. Integer. |
category |
Crime category. Character. |
typology |
Crime typology. For example: Furto de veículo, Roubo de carga. Character. |
granularity |
Level of temporal granularity. Can be "year" or "month". Character. |
Value
A data frame with the filtered data.
Examples
dados <- get_sinesp_vde_data()