Title: | Accesses Brazilian Public Security Data from SINESP Since 2015 |
---|---|
Description: | Allows access to data from the Brazilian Public Security Information System (SINESP) by state and municipality. <https://www.gov.br/mj/pt-br/assuntos/sua-seguranca/seguranca-publica/sinesp-1>. |
Authors: | Giovanni Vargette [aut, cre] |
Maintainer: | Giovanni Vargette <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.1 |
Built: | 2025-02-05 02:49:40 UTC |
Source: | https://github.com/igorlaltuf/brazilcrime |
This function is responsible for collecting criminal data directly from the SINESP database. The data collected by this function starts temporally in January 2015 and goes until December 2022 for each brazilian state, 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).
get_sinesp_data( state = "all", typology = "all", year = "all", granularity = "month", relative_values = FALSE, pivot = FALSE, geom = FALSE )
get_sinesp_data( state = "all", typology = "all", year = "all", granularity = "month", relative_values = FALSE, pivot = FALSE, geom = FALSE )
state |
State to be filtered. Character. |
typology |
Crime typology. For example: Furto de veículo, Roubo de carga. Character. |
year |
Year of the crime. Integer. |
granularity |
Level of temporal granularity. Can be "year" or "month". Character. |
relative_values |
Values per 100,000 inhabitants. Boolean. |
pivot |
Pivot the table. Boolean. |
geom |
Include state geometry. Boolean. |
A data frame.
dados <- get_sinesp_data()
dados <- get_sinesp_data()
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).
get_sinesp_vde_data( state = "all", city = "all", year = "all", category = "all", typology = "all", granularity = "month" )
get_sinesp_vde_data( state = "all", city = "all", year = "all", category = "all", typology = "all", granularity = "month" )
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. |
A data frame with the filtered data.
dados <- get_sinesp_vde_data()
dados <- get_sinesp_vde_data()