Description Usage Arguments Value Examples
Get information about the selected agency including the 9-digit ORI, geographic information, type of agency, and whether they report to NIBRS.
1 | get_agency_info(agency, state = NULL, ori_only = FALSE, exact_match = TRUE)
|
agency |
A string or vector of strings with the name of the agency you want to lookup (capitalized is ignored). |
state |
A string or vector of strings of state names. If used, returns only agencies in that state. This is useful in cases where multiple agencies have the same name in different states and you only want specific states. |
ori_only |
If TRUE (not default), returns only the ORI and the agency_name columns. |
exact_match |
If TRUE (default), finds matches based on exact match of agency name. Else, uses 'grep()' to find agencies with similar names to inputted agency. |
A data.frame with information about the agency - including ORI code and geographic information. The agency will have as many rows as agencies matched from the 'agency' input.
1 2 | get_agency_info("Oakland Police Department")
get_agency_info("Oakland Police Department", state = "california")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.