From the Unified Crime Reporting Statistics and under the collaboration of the U.S. Department of Justice and the Federal Bureau of Investigation information crime statistics are available for public review. The following data set has information on the crime rates and totals for states across the United States for a wide range of years. The crime reports are divided into two main categories: property and violent crime. Property crime refers to burglary, larceny, and motor related crime while violent crime refers to assault, murder, rape, and robbery.



Download all of the following files.


This library has 3 functions you can use.
(require "state_crime.rkt")
(get-all-crimes false)
(get-crime-by-state "Alabama" false)
(get-crime-by-year 1984 false)
Additionally, some of the functions can optionally return Big Data using an extra argument. If you use this Big Data, it may be much slower. Wait until you are sure your code is correct before using these examples.
(require "state_crime.rkt")
; These may be slow!
(get-all-crimes true)
(get-crime-by-state "Alabama" true)
(get-crime-by-year 1984 true)



Gets a list of all the crime reports in the database.

 get-crime-by-state(department, test)

Given the name of a state, returns all the crime reports for that state in the database.

 get-crime-by-year(year, test)

Given a year, returns all the crime reports for that year in the database.