我有2个数据框(按小时的数据和按日的数据)。 我希望按小时标记异常值将标记为有条件(PH按小时计算属于(标准1 - 标准2)即可,否则为异常值)
实施例 PH在11-09-13 10:00(小时)= 49.14068 与11-09-13 20-40比较 和49.14068> 40 =>离群值
我想跑,在R中自动比较 我正在寻找这个问题,但没有结果。 所以,请帮帮我!
Data by Hour
DateTime PH
11-09-13 10:00 49.14068
11-09-13 11:00 52.53494167
11-09-13 12:00 24.8525
11-09-13 13:00 8.56055
11-09-13 14:00 23.77944167
11-09-13 15:00 25.13243333
11-09-13 16:00 35.2913
11-09-13 17:00 20.58211667
11-09-13 18:00 18.605975
11-09-13 19:00 59.16179167
11-09-13 20:00 72.06908333
11-09-13 21:00 43.47536667
11-09-13 22:00 44.73696667
11-09-13 23:00 38.7266
12-09-13 0:00 41.12040833
12-09-13 1:00 33.67845833
12-09-13 2:00 38.49083333
12-09-13 3:00 46.20168333
12-09-13 4:00 40.03630833
12-09-13 5:00 41.10841667
12-09-13 6:00 43.753475
12-09-13 7:00 45.077675
12-09-13 8:00 57.53141667
12-09-13 9:00 45.17694167
12-09-13 10:00 41.106525
12-09-13 11:00 30.08048333
12-09-13 12:00 24.70255833
12-09-13 13:00 15.60813333
12-09-13 14:00 14.09729167
........ n day(24h/day)
按天计算的数据按小时数据
DateTime standard1 standard2
11-09-13 20 40
12-09-13 12 50
13-09-13 16 30
....... n day