R - How to work with and plot time data -


i have following data (of following small sample):

times <- c("02:45:00", "02:45:07", "02:45:10", "02:45:20", "02:45:25", "02:45:27",  "02:45:27", "02:45:30", "02:45:32", "02:45:37") 

i plot these times , able have them in time variable format if possible. in graph, want able have different time bands in order create histogram of different distribution of times.

you strptime familiar base time format.

then, might started:

 hist(strptime(times,"%h:%m:%s"), "secs", freq = true, xlab="seconds") 

enter image description here


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -