开发者

Converting time string to time or numeric 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜