The goal of compstatr
is to provide a suite of tools for working with crime data made public by the City of St. Louis' Metropolitan Police Department.
SLMPD is currently switching to NBIRS, and has not published data since December 2020. We have not been given a timeline for data availability. This current version of the package contains checks in cs_get_data()
that will gracefully error if you attempt to download data that is listed in the index
object but are not actually available on the website.
If the sf
package is already installed, the easiest way to get compstatr
is to install it from CRAN:
install.packages("compstatr")
The development version of compstatr
can be accessed from GitHub with remotes
:
# install.packages("remotes")
remotes::install_github("slu-openGIS/compstatr")
Additional details, including some tips for installing sf
, can be found in the Get started article.
In addition to instructions for installation, the main Get started article has:
compstatr
and its dependencies,compstatr
,compstatr
workflow along with some basic mapping of these data.We wish to thank Taylor Braswell for his significant efforts compiling Stata code early in this project. Taylor's code was used as a reference when developing this package, and many of the functions reflect issues that he worked to identify.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.