Description Usage Format Details Source Examples
data downloaded from url
1 |
A data frame with 97248 observations on the following 17 variables.
crime category
date
day of week
description of crime
hour of week, ranging from 0 to 168
hour of day
Incident Number
address
logical flag indicating drug keyword match
police district
phase of week
Outcome
time
time of day
latitude
longitude
logical indicating violent crime
crime data from San Francisco filtered by drug category. The keywords searched for in the Descript field are: drugPhrases=c("opium","methadone","marijuana","hallucinogenic","heroin", "opiates","cocaine","amphetamine","drugs", "narcotics","controlled substance")
table(drugCrimes$MATCH)
years: 2007:2013 35K additional rows randomly sampled.
The call is: #source('H:/DropboxHWR/myPapers/JSS2015/FinalSubmission/RcodeForFigures/InterestingClusters.R')
drugCrimes = FilterCrimes(2007:2013, KeyWords=drugPhrases, file = "data/drugCrimes.rda")
1 2 3 | data(drugCrimes)
plot(Y~X,data=drugCrimes,col=MATCH+1,pch=20,cex=0.6)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.