nexpected NA after using as.POSIXct(strptime

試著忘記壹切 提交于 2019-12-24 08:55:15

问题


I have a variable date with timestamps:

27.03.2016 01:30  
27.03.2016 02:00      
27.03.2016 02:30

The format is character.

After using

as.POSIXct(strptime(data.frame$date, format = "%d.%m.%Y %R"))

two of the 17568 observations are NA. The others are printed correctly. Why does it happen?

来源:https://stackoverflow.com/questions/42504670/nexpected-na-after-using-as-posixctstrptime

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!