SFcrime: San Francisco Crime Incidents (2012)

Description Usage Format Details Source Examples

Description

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:

Usage

1

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

Details

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

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).

Examples

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

spatialanalysis/geodaData documentation built on Oct. 6, 2020, 12:09 p.m.