ukc_street_crime {ukpolice} | R Documentation |
Street level crime
Description
Street level crime
Usage
ukc_street_crime(lat, lng, date = NULL, crime_category = NULL)
Arguments
lat |
Latitude. Accepts a single value or a vector of values to create a custom polygon. |
lng |
Longitude. Accepts a single value or a vector of values to create a custom polygon. |
date |
The year and month in "YYYY-MM" form. If |
crime_category |
The category of crime to return. Defaults to
returning all crimes. See |
Details
lat
and lng
must be the same length.
Value
A tibble
with details of street crimes.
Examples
## Not run:
crime <- ukc_street_crime(
lat = 51.5, lng = -0.6,
crime_category = "bicycle-theft"
)
crime_poly <- ukc_street_crime(
lat = c(52.268, 52.794, 52.130),
lng = c(0.543, 0.238, 0.478)
)
## End(Not run)
[Package ukpolice version 0.2.2 Index]