I need to sort the dataframe based on time, in time stamp column.
Here is my dput input:
structure(list(Time.stamp = structure(1:6, .Label = c("05/06/2016 21:13",
"05/06/2016 22:52", "05/06/2016 22:58", "09/06/2016 22:40", "09/06/2016 22:45",
"09/06/2016 22:50"), class = "factor")), .Names = "Time.stamp", class = "data.frame", row.names = c(NA,
-6L))
My desired output is
Expected
05/06/2016 21:13
09/06/2016 22:40
09/06/2016 22:45
09/06/2016 22:50
05/06/2016 22:52
05/06/2016 22:58
I tried lubricate package,
data = dmy_hm(data$Time.stamp)
data2 = arrange(data,f_device_time_new)
But it doesnt work. Can anyone provide some suggestion?