id_repeat: Identify Repeat Crime Incidents

View source: R/id_repeat.R

id_repeatR Documentation

Identify Repeat Crime Incidents

Description

This function identifies crime incidents which occur at the same location and returns a list of such incidents where each data frame in the list contains the RMS data for the repeat crime incidents. The data is based on the Chicago Police Department RMS structure.

Usage

id_repeat(data)

Arguments

data

Data frame of crime or RMS data. See provided Chicago Data Portal example for reference

Value

A list where each data frame contains repeat crime incidents for a given location.

Author(s)

Jamie Spaulding, Keith Morris

Examples

#Using provided dataset from Chicago Data Portal:
data(crimes)
crimes <- head(crimes, n = 1000)
out <- id_repeat(crimes)

rcrimeanalysis documentation built on May 31, 2023, 8:54 p.m.