Description Usage Arguments Value Examples
Get arrest data by arrestee demographic from the UCR's Arrests by Age, Sex, and Race data set.
1 2 3 4 5 6 7 | get_arrest_demographics(
ori = NULL,
state_abb = NULL,
region = NULL,
offense = "all",
key = get_api_key()
)
|
ori |
A string or vector of strings of the 9-character ORI code (unique agency ID) for the desired agency. |
state_abb |
String or vector of strings input for state abbreviation(s) to get data for. If NULL (default) returns national data. If 'state_abb' and 'region' both have values, will use return 'region' input data. |
region |
String or vector of strings input for region name(s) to get data for. Please run 'list_regions()' to see all possible variables. |
offense |
A string or vector of strings with the offenses you want to scrape. If input is 'all' (default), returns data for all offenses. Please run 'list_ucr_arrest_offenses()' to see all possible offenses. |
key |
A string containing your FBI's Crime Data Explorer API key |
A data.frame with the number of arrests by arrestee demographic for each crime-year in the jurisdiction.
1 2 3 4 5 | ## Not run:
get_arrest_demographics(ori = "CA0010900", offense = "robbery")
get_arrest_demographics(offense = "robbery")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.