Learn R Programming

crimelinkage (version 0.0.3)

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 fields

Usage

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
tz
timezone

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.

Details

See getDateTime for details.

See Also

getDateTime