我有以下格式的每小时风速数据
DT,DIR,SPEED
2002/01/01 00:00,***,0.0
2002/01/01 03:00,360,0.89408
2002/01/01 06:00,070,4.91744
2002/01/01 09:00,050,4.4704
2002/01/01 15:00,050,2.2352
2002/01/01 18:00,050,3.12928
2002/01/01 21:00,020,0.89408
从 2002 年到 2012 年从每三个小时记录一次的数据点开始到在一个小时内记录三次的数据点,如下所示:
2012/12/31 00:00,***,0.0
2012/12/31 00:10,***,0.0
2012/12/31 00:40,***,0.0
2012/12/31 01:10,***,0.0
2012/12/31 01:40,***,0.0
2012/12/31 02:10,***,0.0
2012/12/31 02:40,***,0.0
2012/12/31 03:00,***,0.0
2012/12/31 03:10,310,2.2352
2012/12/31 03:40,060,4.02336
2012/12/31 04:40,060,3.12928
2012/12/31 05:10,070,4.91744
我正在尝试使用 R 创建显示 SPEED 与 No.of.Hours 的年度频率图。我尝试使用直方图,但点数不相等,当然不能完全代表小时数。如何解决?
注意:不使用 DIR 值,也将*视为 NA