ukc_street_crime_outcome {ukpolice}R Documentation

Street level crime outcomes

Description

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.

Usage

ukc_street_crime_outcome(lat, lng, location, date = 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.

location

If specified, lat and lng are ignored. Location IDs are available through other methods including ukc_street_crime().

date

The year and month in "YYYY-MM" form. If NULL, latest available month will be returned.

Details

If specified, lat and lng must be the same length. location or both lat and lng must be specified.

Value

A tibble with details of street crime outcomes.

Examples

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


[Package ukpolice version 0.2.2 Index]