% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{chicago_crimes}
\alias{chicago_crimes}
\title{Chicago Crime (2023)}
\format{
A data.frame in long format with columns:
\describe{
  \item{region_id}{Integer identifier of the community area.}
  \item{area_number}{Official community area number (1--77).}
  \item{name}{Community area name.}
  \item{population}{Total incidents in the area. This is a compositional
    denominator (sums to the total incident count of the city) and is
    useful for analyses that ask "which crime types over-occur in which
    areas relative to the citywide profile". Not a population at risk.}
  \item{pop_residential}{Residential population of the community area.
    Use this as the denominator for incidence-rate analyses (incidents
    per resident). Source: U.S. Census Bureau, ACS 2020 5-year estimates,
    aggregated to community areas by CMAP Community Data Snapshots.
    The 77 values sum to approximately 2.71M, matching the published
    Chicago population.}
  \item{x}{Longitude of the centroid.}
  \item{y}{Latitude of the centroid.}
  \item{node_id}{Character leaf identifier from \code{\link{chicago_tree}}.}
  \item{cases}{Integer count of crime incidents.}
}
}
\source{
Crime incidents: City of Chicago Data Portal, Crimes -- 2001 to Present.

Residential population: U.S. Census Bureau ACS 2020 5-year estimates,
aggregated to community areas by the Chicago Metropolitan Agency for
Planning (CMAP), Community Data Snapshots (2023 release).
\url{https://cmap.illinois.gov/data/community-data-snapshots/}
}
\usage{
chicago_crimes
}
\description{
Combined long-format dataset of crime incidents in the 77 community areas
of Chicago, 2023. Use together with \code{\link{chicago_tree}}.
}
\examples{
data(chicago_crimes)
head(chicago_crimes)
cat("Total incidents:", sum(chicago_crimes$cases), "\n")
cat("Total residents:",
    sum(unique(chicago_crimes[, c("area_number", "pop_residential")])$pop_residential),
    "\n")
}
\seealso{
\code{\link{chicago_tree}}, \code{\link{chicago_map}}
}
\keyword{datasets}
