crimedatasets

The crimedatasets package provides a comprehensive collection of datasets exclusively focused on crimes, criminal activities, and related topics. This package serves as a valuable resource for researchers, analysts, and students interested in crime analysis, criminology, and socio-economic studies related to criminal behavior.

The datasets included span global and local contexts, offering both tabular and spatial data. Each dataset is named with a suffix indicating its structure or type, making it easier to identify and work with the data.

Installation

You can install the crimedatasets package from CRAN with the following R function:


install.packages("crimedatasets")


Usage

After installation, you can load the package and begin exploring the datasets. The consistent naming convention helps you easily understand the structure of each dataset:

Example Code:

# Load the package
library(crimedatasets)

# Load a dataset
data("Abilene_tbl_df")

# View the dataset
head(Abilene_tbl_df)

# Load another dataset
data("nz_murders_sf")

# Summary of the spatial dataset
summary(nz_murders_sf)


Example Datasets

Here are some example datasets included in the crimedatasets package: