example_input_crime_raw | R Documentation |
A dataset containing an example input crime (a burglary), in raw form.
It includes the minimum information needed for the function fn_prepare_input_crime()
to operate.
This example is fictional; the location, time, case id, and location type are made up,
but are typical of the crimes in the data used in Curtis-Ham et al (2022) to calibrate and test GP-SMART.
data(example_input_crime_raw)
A data frame of 1 row and 9 columns:
case_id
A unique reference number for the input crime. Can be a character or numeric vector.
offence_type
The type of input crime. A factor with levels "burglary", "robbery" or "sex", being the crimes GP-SMART is calibrated for use with.
x
Easting coordinate. Must be in metres to enable distance calculations.
y
Northing coordinate. Must be in metres to enable distance calculations.
start_date
Start date of the crime. A date in format "YYYY-MM-DD".
end_date
End date of the crime, if the exact date is not known. A date in format "YYYY-MM-DD".
start_time
Start time of the crime. A difftime in format "HH:MM:SS".
end_time
End time of the crime, if the exact time is not known. A difftime in format "HH:MM:SS".
location_type
The type of location in which the crime was committed. A factor with levels "residential", "commercial", "public", "street" or "unknown".
Based on crime data provided by New Zealand Police
Curtis-Ham S., Bernasco, W., Medvedev, O. N., & Polaschek, D. L. L (2022). 'A new geographic profiling method for mapping and ranking suspects in crime investigations: GP-SMART'. Journal of Investigative Psychology and Offender Profiling. https://doi.org/10.1002/jip.1585
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.