formatData: Format crime data to include census and police station data

Description Usage Arguments Value Examples

View source: R/clean_data.R

Description

Format crime data to include census and police station data

Usage

1
formatData(crime_data, densities = TRUE, verbose = TRUE, ...)

Arguments

crime_data

dataframe from data(all_crime)

densities

logical; if TRUE, population densities, crime densities, as well as the ratio between the two will also be joined to crime_data

verbose

logical; if TRUE, formatting procedures will be displayed as they are completed

...

further arguments to be passed to create_spatial_attributes

Value

data of the same form of crime_data, with appended census and police station data

Examples

1
2
3
4
5

jakespiteri/chicagocrime documentation built on Jan. 24, 2020, 1:26 a.m.