Skip to contents

NYPD Stop, Question and Frisk (SQF) microdata via NYC OpenData.

Usage

morie_datasets_nyc_stop_and_frisk(
  year = NULL,
  max_features = NULL,
  offline = TRUE,
  paginate = FALSE,
  page_size = 1000L,
  max_pages = 200L
)

Arguments

year

Integer or NULL; release year (one of 2022, 2023, 2024). NULL defaults to the most-recent registered year.

max_features

Integer or NULL; cap on returned rows. When paginate = TRUE this is the total cap across all walked pages.

offline

Logical; if TRUE, return the bundled synthetic frame.

paginate

Logical; if TRUE and offline = FALSE, walk SODA2 $offset in page_size chunks. Default FALSE.

page_size

Integer; per-page row count when paginating (default 1,000, the unauthenticated SODA2 ceiling).

max_pages

Integer; safety net on paginated walks (default 200).

Value

A data.frame. Schema is NOT normalised across years.