| arrest_sample | R Documentation |
A CRAN-safe slice of the City of Chicago "Arrests" dataset. For the full
~1.5M-row dataset use chiload("arrests", full = TRUE).
arrest_sample
A base data.frame with up to 25,000 rows and 8 columns:
Chicago PD records-division number (character).
Arrest timestamp as an ISO-8601 string with offset.
Arrest timestamp as POSIXct (America/Chicago).
Recorded race of the arrestee (character).
Charge type of the primary charge (F/M/etc.).
Charge class of the primary charge.
Description of the primary charge.
Statute of the primary charge.
City of Chicago Open Data Portal, "Arrests"
(dataset dpt3-jri9). https://data.cityofchicago.org/
chiload
data(arrest_sample)
dim(arrest_sample)
str(arrest_sample)
# Recorded race distribution.
sort(table(arrest_sample$race), decreasing = TRUE)
# Charge severity (F = felony, M = misdemeanour, ...).
sort(table(arrest_sample$charge_type), decreasing = TRUE)
# Most frequent primary charges.
head(sort(table(arrest_sample$charge_desc), decreasing = TRUE), 5)
# Cross-tab race x charge type.
with(arrest_sample, table(race, charge_type))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.