的數據看起來像動物園/ XTS微秒讀問題
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?
然而,這並沒有幫助。 任何建議
注意,你所有那些帖子使用'格式=「%H:%M:%OS''或'格式='%H:%M:%OS6' – GSee