Skip to contents

Requires 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 NULL for national.

offense

Character; NIBRS offence slug, or NULL for all.

api_key

Character; FBI CDE API key (or NULL -> env var).

offline

Logical; if TRUE, return a bundled synthetic frame.

Value

A data.frame.