I'm trying to convert data$TIME (format: 06:07:11 PM) to hours (18 in this case) so that I can count the number of inquiries (calls) for each hour to plot a histogram or barchart.
Can someone please help me?
data = read.csv('X.csv')
data$TIME <- format(strptime(data$TIME, "%H:%M:%S %p"), format="%H:%M:%S")
but the code above is returning NAs...