fbicrime - a R wrapper for FBI Crime API

This package is an R wrapper for the FBI Crime API, it aims to provide an easy access for R users to the most updated data about offense, offender, victim, and arrest from the API. It also makes it possible to query multiple keywords at one time and return a combined data frame.

How to install

# install.packages("devtools")


How to use

You need to get a key for the API at

Then you can access FBI crime data by calling functions in this package. You can either input your API key each time when use functions or save it as a global variable in your R session using function set_fbi_crime_api_key('').

How to find help

main help document

After install and library this package, you can also access to the help document of each function by excuting


a Medium post about this package

SUN-Wenjun/fbicrime documentation built on Dec. 25, 2019, 5:12 a.m.