get_sinesp_data {BrazilCrime}R Documentation

get_sinesp_data Function

Description

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).

Usage

get_sinesp_data(
  state = "all",
  typology = "all",
  year = "all",
  granularity = "month",
  relative_values = FALSE,
  pivot = FALSE,
  geom = FALSE
)

Arguments

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.

Value

A data frame.

Examples


dados <- get_sinesp_data()



[Package BrazilCrime version 0.2 Index]