cs_get_data | R Documentation |
Downloads crime data from the SLMPD website.
cs_get_data(year, month, index)
year |
A year value in the style |
month |
Optional; a month number, name, or abbreviation - |
index |
Optional; an index object created with |
A year-list object ready for validation.
# create index
i <- cs_create_index()
# download single month
may18 <- cs_get_data(year = 2018, month = "May", index = i)
# preview single month
may18
# download full year
yearList18 <- cs_get_data(year = 2018, index = i)
# preview year list object
yearList18
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.