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.

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)
# }