- gains
ukp_stop_search()
andukp_stop_seach_poly()
(#22 & #23) to return the stop and search crime information https://data.police.uk/docs/method/stops-street/
- Added
lat_
andlng_
example data so people can explore crime in a few places like "London", "Cambridge University", "Oxford University", "Abby Road Recording Studio", and "Liverpool city".
- Minor clean ups from the past 18 months:
- removed maxcovr as suggestions
- used markdown in roxygen
- tweak README and README figures
- Added a vignette
- Added the "york" dataset, which contains information on listed buildings in the city of York, UK. This is used to demonstrate defining polygon around a region and finding crime within in.
ukp_crime_poly()
now takes a data.frame of long/lat points instead of an long character vector. This is due to the utility functionukp_poly_paste
.- added
ukp_geo_chull
which takes a data.frame and some lon/lat names and provides the dataframe which contains the convex hull of points. This can then be fed intoukp_crime_poly()
.
- Add
ukp_crime_poly()
, which is likeukp_crime()
, but takes multiple pairs of long/lat to extract crime that falls within a polygon, instead of within a one mile radius of a particular point - Added unexported function
ukp_crime_unlist
which flattens the crime data.
- Created
ukp_crime()
, which accesses the crimes that occur within one mile of a given latitude and longitude, and from a specific month - Created function
ukp_last_update()
, to search for the last update in the crime data. - Added pkgdown website for the package documentation
- Changed all functions to have prefix
ukp_
, soget_neighbourhoods
changed toukp_neighbourhood()
, andukpolice_api()
changed toukp_api()
, as suggested by @sckott in issue #6. - Added function
ukp_neighbourhood_force()
, to find associated neighbourhood forcename and neighbourhood ID. - Added
...
option inukp_api()
, to facilitate debugging, as suggested by @sckott in issue #7
- Added a
NEWS.md
file to track changes to the package. - Added the
get_neighbourhoods
function.