tags:

views:

86

answers:

1

I have a time column in the format of 00:00 00:30 01:00.

I want to subset to certain hours but I don't understand how to convert it to the right format
for the date i used as.date() is there someting similar?

A: 

hi
i am sorry i got it i used the strptime and strftime functions like so:

strftime(strptime(x, format="%H:%M"),"%H")

eliavs
I think you have minutes and hours around the wrong way.
hadley
oops......... thank you
eliavs