csb_get_data: Download CSB Data from the City of St. Louis

View source: R/csb_get_data.R

csb_get_dataR Documentation

Download CSB Data from the City of St. Louis

Description

csb_get_data provides direct access to a compiled version of the CSB's data release via the City of St. Louis website. These data are provided with no warranty from either the City of St. Louis or the package developers.

Usage

csb_get_data(tidy = TRUE, years, ...)

Arguments

tidy

A logical scalar; if TRUE, variable names will be converted to lower case and reordered. Two variables with incomplete data - problem city (PROBCITY) and problem zip code (PROBZIP) - are dropped to limit use of memory. This mirrors the functionality of csb_load_variables.

years

Optional; if included, data not in the specified years will be excluded from the returned object.

...

Additional testing options; not for production use

Value

Returns a tibble with all CSB calls for service.

Examples

## Not run: 
csb <- csb_get_data()
csb <- csb_get_data(tidy = FALSE)
csb <- csb_get_data(years = 2009:2018)
csb <- csb_get_data(years = 2018)

## End(Not run)


slu-openGIS/stlcsb documentation built on Jan. 28, 2024, 12:10 p.m.