【发布时间】:2012-06-23 13:55:42
【问题描述】:
数据看起来像
Time Set1 Set2
10:19:38.551629 16234 16236
10:19:41.408010 16234 16236
10:19:47.264204 16234 16236
我正在尝试将其加载到动物园中。
orig <- read.zoo("~/sample.txt",sep="",header=TRUE,index.column=1,format="%H:%M:%S.%6f")
Error in read.zoo("~/sample.txt", sep = "", header = TRUE, index.column = 1, :
index has 3 bad entries at data rows: 1 2 3 ...
我已经检查了所有相关的帖子 1.R issue with rounding milliseconds 2.Milliseconds puzzle when calling strptime in R 3.How to parse milliseconds in R?
然而这并没有帮助。 任何建议
【问题讨论】:
-
请注意,所有这些帖子的答案都使用
format = '%H:%M:%OS'或format = '%H:%M:%OS6'
标签: r time-series xts zoo strptime