Download

Scrape Data Tables Directly from the SLMPD Website

cs_last_update()

Date of Last Crime Data Update from SLMPD

cs_create_index()

Create Index of Available Months

cs_get_data()

Download Crime Data from SLMPD

Load

Read Data Tables Downloaded Manually from the SLMPD Website

cs_prep_year()

Prepare Raw Data

cs_load_year()

Create Year List Object

Validate and Collapse

Standardize and Collapse Year-List Objects

cs_validate()

Validate Year List Object

cs_extract_month()

Extract Month from Year List Object

cs_replace_month()

Extract Month from Year-list Object

cs_standardize()

Standardized Variables

cs_collapse()

Collapse Months in Year List Object into Single Tibble

cs_combine()

Ensure Objects Contain Data Only For a Given Year

Tidy

Work with Crime Data, including non-SLMPD Data

cs_crime()

Identify Crimes

cs_crime_cat()

Categorize Crime

cs_filter_crime()

Filter Crimes

cs_filter_count()

Remove Negative Counts

cs_parse_date()

Separate Date Occur

cs_parse_month()

Separate Coded Month

Map

Wrangle and Project Crimes

cs_address()

Create a Single Address Field

cs_replace0()

Replace Coordinates with 0 Value with NA

cs_missingXY()

Identify Missing Coordinates

cs_projectXY()

Project Data

Data

Example Data for Practicing Wrangling and Mapping

cs_example()

Load Example Files

january2018

Crimes in St. Louis, January 2018