This article mainly analyzes the occurrence of different types of crime from the perspective of time and geographical location. My most interesting question is whether time will affect the number of crimes. Of all the ?ata and the reponse velocity of Toronto Police. I mainly use crime type, time and geographic data.I use the linear model to evaluate the efficiency of police. I hope my research will help the Toronto Police Department to allocate police force reasonably.
Input Toronto crime data in Rmarkdown There is no null value in the dataset However,in order to calculate the police response speed, I also added two columns, which are the difference of reported year, occurrence year and reported day, occurrence day.
thefts<-read.csv("auto_thefts.csv")
a<-is.na(thefts)