Skip to content

Bhanditz/crime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crime

Many municipalities provide open data on crime statistics.
This project tries to leverage that data and show patterns.

The direct source for this data is OpenDataPhilly

alt tag alt tag

Below shows Philadelphia Center City crime alt tag

# Here's a quick way to get the data into R
library(RCurl)
File <- getURL("https://raw.githubusercontent.com/mchirico/crime/master/data/philly_crime.csv")
d <- read.csv(text = File,header=TRUE,stringsAsFactors=FALSE)
wd<-function(x) as.POSIXct(strptime(x, '%Y-%m-%d %H:%M:%S',tz='GMT'))
d$mdate = wd(d$DISPATCH_DATE_TIME)
# Remove na's
d=d[complete.cases(d[4:5]),]

For a more detail, see Analyzing Philadelphia Crime Data

About

Many municipalities provide open data on crime statistics. This project tries to leverage that data and show patterns.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published