Description Usage Arguments Value Examples
Fetches crimes from the police.uk API within a given sf polygon.
1 | get_crimes(polygon, start_month = "latest", end_month = "latest")
|
polygon |
an sf polygon within which to request the crimes data |
start_month |
first month for which to get data for in the format "YYYY-MM". Defaults to most recent month available. |
end_month |
last month for which to get data for in the format "YYYY-MM". Defaults to most recent month available. |
street level crimes as dataframe
1 2 | camden_poly <- localauth_ldn[localauth_ldn$lad20nm == 'Camden',]
get_crimes(camden_poly, start_month = '2020-03', end_month = '2020-07')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.