Learn R Programming

RgoogleMaps (version 1.5.1)

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)

Arguments

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

Examples

Run this code
data(incidents)
table(incidents$Category)

Run the code above in your browser using DataLab