R/available-data.R

Defines functions ukc_available

Documented in ukc_available

#' Available data
#'
#' Returns a `tibble` with all available datasets. The `id` column contains the
#' year and month, and other columns contain a list with all police forces
#' reporting data for that month. As of 2019-04-02 only information on
#' stop and search data is returned by this endpoint.
#'
#'
#' @export
ukc_available <- function() {
  query <- "crimes-street-dates"

  df <- ukc_get_data(query)

  df
}

Try the ukpolice package in your browser

Any scripts or data that you put into this service are public.

ukpolice documentation built on Aug. 3, 2020, 5:09 p.m.