xts error - order.by requires an appropriate time-based object

与世无争的帅哥 提交于 2019-12-01 04:35:44

Ok, Samo, that's fixable with this

indexClass(TICK.NYSE) <- c("POSIXt", "POSIXct")

because timeBased checks to see if it inherits "POSIXt", but doesn't check for "POSIXct"

There's at least one other place that has this problem in xts. xts:::.drop.time only works if indexClass(x)[1] == "POSIXt"

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