fixDateTime: Updates criminal incident data with date-time objects in correct format.
Description
Convenience function to update crime data that has separate date and time
fields with date-time fieldsUsage
fixDateTime(crimedata, tz = "")
Arguments
crimedata
(n x p) data frame of crimes containing the fields:
DATE_FROM, DATE_TO, TIME_FROM, TIME_TO
- times must be in format:
%H%M
- dates must be in format:
%Y-%m-%d
Value
- This function returns an updated
crimedata
data frame by adding
the fields: DT.FROM, DT.TO and deleting the fields:
DATE_FROM, DATE_TO, TIME_FROM, TIME_TO.