as.POSIXct gives an unexpected timezone

前端 未结 4 583
囚心锁ツ
囚心锁ツ 2020-12-16 16:17

I\'m trying to convert a yearmon date (from the zoo package) to a POSIXct in the UTC timezone. This is what I tried to do:

> as.POSIXct(as.yearmon(\"2010         


        
4条回答
  •  渐次进展
    2020-12-16 16:46

    This is because as.POSIXct.Date doesn't pass ... to .POSIXct.

    > as.POSIXct.Date
    function (x, ...) 
    .POSIXct(unclass(x) * 86400)
    
    

提交回复
热议问题