Data are updated by SLMPD on their crime statistics site on a monthly basis. This function returns the date of the last update.

cs_last_update(output = "string")

Arguments

output

A character scalar; if "string" the date will be returned in the style of "January 2019". If "date" the date will be returned as a YYYY-MM-DD date object.

Value

The date of the last posted data set in the format specified in the output parameter.

Examples

# obtain data of last update cs_last_update()
#> [1] "April 2020"