Description Usage Arguments Details Value Examples
View source: R/street-crime-outcome.R
Returns details on crimes at a given location, if given the id of a specific location. If given latitude and longitude, finds the nearest pre-defined location and returns the crimes which occurred there.
1 | ukc_street_crime_outcome(lat, lng, location, date = NULL)
|
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. |
location |
If specified, |
date |
The year and month in "YYYY-MM" form. If |
If specified, lat
and lng
must be the same length. location
or both lat
and lng
must be specified.
A tibble
with details of street crime outcomes.
1 2 3 4 5 6 | ## Not run:
street_crime_outcome1 <- ukc_street_crime_outcome(location = 883498)
street_crime_outcome2 <- ukc_street_crime_outcome(lat = 52, lng = 0)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.