开发者

Converting time string to time or numeric format

开发者 https://www.devze.com 2023-01-10 12:06 出处:网络
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

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?


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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消