I'm new to R. My data has 600k objects defined by three attributes: Id
, Date
and TimeOfCall
.
TimeofCall
has a 00:00:00
format and range from 00:00:00
to 23:59:59
.
I want to bin the TimeOfCall
attribute, into 24 bins, each one representing hourly slot (first bin 00:00:00
to 00:59:59
and so on).
Can someone talk me through how to do this? I tried using cut()
but apparently my format is not numeric. Thanks in advance!