Title: | Access Data from the Public Security Institute of the State of Rio De Janeiro |
---|---|
Description: | Allows access to data from the Rio de Janeiro Public Security Institute (ISP), such as criminal statistics, data on gun seizures and femicide. The package also contains the spatial data of Pacifying Police Units (UPPs) and Integrated Public Safety Regions, Areas and Circumscriptions. |
Authors: | Igor Laltuf [aut, cre] |
Maintainer: | Igor Laltuf <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.1.2 |
Built: | 2025-03-07 02:48:42 UTC |
Source: | https://github.com/igorlaltuf/ispdata |
Returns monthly data on police occurrences involving bicycle theft in the State of Rio de Janeiro in the form of a dataframe.
bicycle_theft()
bicycle_theft()
a dataframe
## Not run: bicycle_theft()
## Not run: bicycle_theft()
Returns data about car fleet in State of Rio de Janeiro in the form of a dataframe.
car_fleet(by)
car_fleet(by)
by |
"month" or "year". character. |
a dataframe.
## Not run: car_fleet(by = "month")
## Not run: car_fleet(by = "month")
Returns monthly data about crimes against life in the State of Rio de Janeiro in the form of a dataframe.
crimes_against_life(type)
crimes_against_life(type)
type |
allows you to select the type of violent crime: "femicide", "violent_lethality", "violent_lethality_elucidation_rate" or "officers_killed_on_duty". character. |
The data available are on femicide, violent lethality, the rate of elucidation of cases of violent lethality or death of police officers on duty.
a dataframe
## Not run: crimes_against_life(type = "femicide")
## Not run: crimes_against_life(type = "femicide")
Returns monthly data about gun seizure in State of Rio de Janeiro in the form of a dataframe.
gun_seizure(gun_type)
gun_seizure(gun_type)
gun_type |
selects the gun type: "firearms" or "edged_weapons". character. |
a dataframe
gun_seizure(gun_type = "firearms")
gun_seizure(gun_type = "firearms")
Returns monthly historical data about seizure of firearms in State of Rio de Janeiro in the form of a dataframe.
gun_seizure_historical(by)
gun_seizure_historical(by)
by |
selects the spatial division of the data: "cisp" or "state". character. |
Data availability from 2000 to 2006 for the State and from 2003 to 2006 for the Police Station Area (also called CISP).
a dataframe
## Not run: gun_seizure_historical(by = "cisp")
## Not run: gun_seizure_historical(by = "cisp")
Returns monthly data on police occurrences in the State of Rio de Janeiro in the form of a dataframe.
monthly_stats(by, value = "standard")
monthly_stats(by, value = "standard")
by |
selects the spatial division of the data. It might be: "cisp", "municipality" or "state". character. |
value |
allows you to choose whether the values will be in absolute numbers ("standard") or per 100,000 inhabitants ("per_100k"). character. |
To see the dictionary of variables, use the function monthly_stats_dictionary().
a dataframe
monthly_stats(by = "cisp")
monthly_stats(by = "cisp")
Returns the data dictionary of the police occurrences in the State of Rio de Janeiro in the form of a dataframe.
monthly_stats_dictionary(by, value = "standard")
monthly_stats_dictionary(by, value = "standard")
by |
selects the spatial division of the dictionary. It might be: "cisp", "municipality" or "state". character. |
value |
selects the type of value: absolute numbers ("standard") or per 100,000 inhabitants ("per_100k"). character. |
a dataframe
## Not run: monthly_stats_dictionary(by = "state", value = "per_100k")
## Not run: monthly_stats_dictionary(by = "state", value = "per_100k")
Returns data about population by state, municipality, CISP (the same as police station area) or Pacifying Police Unit.
population(data)
population(data)
data |
selects the data: "cisp_monthly", "cisp_yearly", "muni_monthly", "muni_yearly", "state_monthly", "state_yearly", "upp_2010" or "upp_projection". character. |
a dataframe.
## Not run: population(data = "cisp_monthly")
## Not run: population(data = "cisp_monthly")
This is the spatial data from the Integrated Public Safety Area (AISP) of the State of Rio de Janeiro.
spatial_aisp
spatial_aisp
spatial_aisp
A spatial data frame
Integrated Public Safety Areas (AISP) code
Integrated Public Safety Regions (RISP) code
Spatial vector data of AISP
https://www.ispdados.rj.gov.br/Arquivos/AISPshp.rar
This is the spatial data from the Integrated Public Safety Circumscriptions (CISP) of the State of Rio de Janeiro.
spatial_cisp
spatial_cisp
spatial_cisp
A spatial data frame
id number
Integrated Public Safety Areas (AISP) code
Spatial vector data of CISP
https://www.ispdados.rj.gov.br/Arquivos/CISPshp.rar
Returns data about the spatial data in the package. If the data argument is "code_equivalence", it will show the equivalence between AISP, CISP and RISP codes, neighborhoods and cities. If the data argument is "area_km2", it returns a dataframe with the areas of AISP, CISP and RISP by square kilometers.
spatial_info(data)
spatial_info(data)
data |
it may be "code_equivalence" or "area_km2" |
a dataframe
## Not run: spatial_info(data = "code_equivalence")
## Not run: spatial_info(data = "code_equivalence")
This is the spatial data from the State of Rio de Janeiro.
spatial_regions_rj
spatial_regions_rj
spatial_regions_rj
A spatial data frame
id number
region name
Spatial vector data of the regions
https://www.ispdados.rj.gov.br/Arquivos/RegioesSHP.rar
This is the spatial data from the Integrated Public Safety Regions (RISP) of the State of Rio de Janeiro.
spatial_risp
spatial_risp
spatial_risp
A spatial data frame
risp number
Spatial vector data of RISP
https://www.ispdados.rj.gov.br/Arquivos/RISPshp.rar
This is the spatial data from the territorial limits of the Pacifying Police Units (UPPs) in the year of 2017.
spatial_upp
spatial_upp
spatial_upp
A spatial data frame
UPP name
UPP abbreviate name
UPP id number
Creation date
resolution number
Spatial vector data of UPPs limits in 2017
https://www.ispdados.rj.gov.br/Arquivos/UPPshp.rar
Returns data about Pacifying Police Units in the form of a dataframe.
upp_data(data)
upp_data(data)
data |
selects the data: "stats", "dates" or "area_m2". character. |
a dataframe.
## Not run: upp_data(data = "area_m2")
## Not run: upp_data(data = "area_m2")
Returns yearly data on police occurrences in the State of Rio de Janeiro in the form of a dataframe.
yearly_stats(by)
yearly_stats(by)
by |
selects the spatial division of the data. It might be: "municipality" or "state". character. |
Values per 100,000 inhabitants.
To see the dictionary of variables, use the function yearly_stats_dictionary().
a dataframe
## Not run: yearly_stats(by = "state")
## Not run: yearly_stats(by = "state")
Returns the data dictionary of the police occurrences in the State of Rio de Janeiro in the form of a dataframe.
yearly_stats_dictionary(by)
yearly_stats_dictionary(by)
by |
selects the spatial division of the dictionary. It might be: "municipality" or "state". character. |
a dataframe
## Not run: yearly_stats_dictionary(by = "state")
## Not run: yearly_stats_dictionary(by = "state")