【发布时间】:2017-02-23 15:16:32
【问题描述】:
标题是不言自明的。我有一个df,第一列是"14-OCT-2016",一直向下运行。我需要把这个df 读成.xts
我看了:
df$NAV.Date <- as.Date(df$NAV.Date, "%Y %b %d" ) # this replaces all values with NA
df$NAV.Date <- strftime(test$NAV.Date, format="%Y %b %d" )
对于我得到的最后一个:
Error in as.POSIXlt.character(as.character(x), ...) :
character string is not in a standard unambiguous format
提前致谢。
【问题讨论】:
标签: r date time-series xts zoo