R/zoo: index entries in ‘order.by’ are not unique

前端 未结 2 704
独厮守ぢ
独厮守ぢ 2021-01-01 01:45

I have a .csv file containing 4 columns of data against a column of dates/times at one-minute intervals. Some timestamps are missing, so I\'m trying to generate the missing

2条回答
  •  爱一瞬间的悲伤
    2021-01-01 02:50

    anyDuplicated(har10) tells you if any complete rows are duplicated. zoo is warning about the index, so you should run anyDuplicated(har10$HAR.TS). sum(duplicated(har10$HAR.TS)) will show there are almost 9,000 duplicate datetimes. The first duplicate is around row 311811, where 10/08/19 13:10 appears twice.

提交回复
热议问题