Coder Social home page Coder Social logo

querynibrs's Introduction

queryNIBRS

A package for querying NIBRS crime data summaries.

This package retrieves data from the FBI's Uniform Crime Reporting program (UCR) using their Crime Data Explorer (CDE) API. Both instance data and summary data from the National Incident Based Reporting System (NIBRS) can be retrieved.

Accessing data will require the use of an API key that can be obtained from https://api.data.gov/signup/.

Warning:

The API is considered to be in development, so some functions may not retrieve data or work as advertised. Some legitimate queries can return errors.

Note that the summary data can be explored visually on the FBI's Crime Data Explorer website.

The functions in the query_functions.R file abstract queries to a convenient level, while the functions in connection_functions.R are the metafunctions that create and execute queries. The functions in query_functions.R are the ones you'll want to call to retrieve data.

Calling a function with an invalid variable or offense name set will return a list of valid values for that function. Some are self-explanatory (like the offense "homicide") while others are more arcane and will require digging around in the FBI's documentation to interpret (like "age_num").

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.