Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

incidents

San Francisco crime data


Description

The incidents data frame has 5000 rows and 16 columns. These are 5000 random rows from the 2012 crime data recorded in San Francisco.

Usage

data(incidents)

Format

This data frame contains the following columns:

IncidntNum

incident number assigned by the police

Category

Category of crime

Descript

longer description

DayOfWeek

day of week

Date

date

Time

time of day formatted as hh:mm

PdDistrict

police district

Resolution

was the crime resolved?

Location

location as address

lon

longitude

lat

latitude

violent

violent flag

HrOfDay

hour of day as 2-digit integer

TimeOfDay

hour of day as decimal number

HourOfWeek

hour of week as decimal number between 0-168

censusBlock

ID of census block

Details

crime data recorded in San Francisco

Source

URL https://data.sfgov.org/

Examples

data(incidents)
table(incidents$Category)

RgoogleMaps

Overlays on Static Maps

v1.4.5.3
GPL
Authors
Markus Loecher
Initial release
2020-02-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.