Incidents of robberies, drugs/narcotics possession or sale, vehicle theft, and vandalism for July 1 to December 31, 2012. Use list2env(SFcrime, .GlobalEnv) to unlist in working environment. The data consist of a list of four objects:

  • cartheft A spatial points object of class sf Dataframe with 3,384 observations, 13 variables, and a geometry column.

  • drugs A spatial points object of class sf Dataframe with 3,897 observations, 13 variables, and a geometry column.

  • robbery A spatial points object of class sf Dataframe with 2,761 observations, 13 variables, and a geometry column.

  • vandalism A spatial points object of class sf Dataframe with 3,430 observations, 13 variables, and a geometry column.

SFcrime

Format

Each object contains the following variables:

IncidntNum

Unique identifier for each incident report

X_pr

Projected X-coordinates

Y_pr

Projected Y-coordinates

Category

Crime classification, e.g. vehicle theft, etc

Descript

Description of the crime

DayOfWeek

Day of the week that crime was reported

Date

Date of the report

Time

Time of report

PdDistrict

Police district

Resolution

Outcome of the report, e.g. None, Arrest, Unfounded, etc

Location

Street address where the crime occurred

X

X-Coordinates of crime location

Y

Y-Coordinates of crime location

Source

2010 Census (population) and “Crime Incidents from 1 Jan 2003”, City of San Francisco Open Data Portal (crimes) (https://data.sfgov.org/Public-Safety/Map-Crime-Incidents-from-1-Jan-2003/gxxq-x39z).

Details

List of four Sf objects, projected to EPSG 2227: NAD83 / California zone 3 (ftUS).

Examples

if (requireNamespace("sf", quietly = TRUE)) { library(sf) data(SFcrime) plot(SFcrime[["cartheft"]][9]) }