FBI NIBRS offence-event records via the Crime Data Explorer API.
Source:R/datasets.R
morie_datasets_nibrs.RdRequires an API key (api_key= or FBI_CDE_API_KEY env var).
Usage
morie_datasets_nibrs(
year = NULL,
max_features = NULL,
state = NULL,
offense = NULL,
api_key = NULL,
offline = FALSE
)Arguments
- year
Integer; reporting year (required unless
offline = TRUE).- max_features
Integer or
NULL; cap on returned rows.- state
Character; two-letter US state code, or
NULLfor national.- offense
Character; NIBRS offence slug, or
NULLfor all.- api_key
Character; FBI CDE API key (or
NULL-> env var).- offline
Logical; if
TRUE, return a bundled synthetic frame.