My dataset class has "time" feature. This feature belongs to character class. I try to show the frequency of pick up per different time slot.For this reason, I used "cut" function as below:
FreqPickupTime <- cut(dt$time, breaks = "hour")
But, I occur with the below error.
Error in cut.default(dt$time, breaks = "hour") :'x' must be numeric.
is there any solution to use this cut function for character features.