get_area_911_calls: Get area 911 calls for service from Open Baltimore

View source: R/get_area_911_calls.R

get_area_911_callsR Documentation

Get area 911 calls for service from Open Baltimore

Description

get_area_911_calls() can return public records on 911 calls for service from 2017 through the present year.

Usage

get_area_911_calls(
  area_type = NULL,
  area_name = NULL,
  description = NULL,
  year = 2023,
  start_date = NULL,
  end_date = NULL,
  where = NULL,
  ...
)

Arguments

area_type

Area type. Requires area_name is also provided. Options include "neighborhood", "council district", or "police district"

area_name

Area name. Requires area_type is also provided.

description

String matching call description, e.g. "DISORDERLY", "BURGLARY", "DISCHRG FIREARM", etc.

year

numeric. Year of calls for service. Currently only one year at a time is supported (except for years since 2021). If NULL, the oldest year from the start_date and end_date is used.

start_date

Character string in format YYYY-MM-DD. Filters calls by date.

end_date

Character string in format YYYY-MM-DD. Filters calls by date.

where

string for where condition. Ignored if area_type, area_name, start_date, or end_date are provided.

...

Additional parameters passed to getdata::get_esri_data() excluding url, where, crs, and .name_repair.


elipousson/mapbaltimore documentation built on April 2, 2024, 4:23 p.m.