楼主: joe365
1668 2

请教如何查找和处理时间割断(gap),谢谢! [推广有奖]

  • 0关注
  • 0粉丝

初中生

33%

还不是VIP/贵宾

-

威望
0
论坛币
6 个
通用积分
5.4017
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
175 点
帖子
20
精华
0
在线时间
2 小时
注册时间
2007-10-9
最后登录
2010-1-12

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
请教各位高手,对于本来应该是连续时间的数据,出现了割断(gap),如何查找数据中是否存在割断并对割断点处加入新的观测数据?
形如下列数据,在01AUG07:21:00:00处出现了割断。
现在的想法是产生一个连续的时间数据集,如01AUG07:00:00:00——02AUG07:23:00:00,然后对割断的数据进行update。不过,感觉这样做思路不太对。能否直接对数据集进行操作,如判断DIF是否为3600等方法来进行查找?
烦请各位高手指点,多谢了!
............
01AUG07:17:00:00 01AUG07 17:00:00 1
01AUG07:18:00:00 01AUG07 18:00:00 2
01AUG07:19:00:00 01AUG07 19:00:00 1
01AUG07:20:00:00 01AUG07 20:00:00 3
01AUG07:22:00:00 01AUG07 22:00:00 4
01AUG07:23:00:00 01AUG07 23:00:00 1
02AUG07:00:00:00 02AUG07 0:00:00 1
02AUG07:01:00:00 02AUG07 1:00:00 5
02AUG07:02:00:00 02AUG07 2:00:00 1
02AUG07:03:00:00 02AUG07 3:00:00 1
...........
<script type="text/javascript"></script><script src="https://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>

[此贴子已经被作者于2008-3-13 0:18:27编辑过]

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:如何查找 Gap update 如何查找数据 查找数据 请教 时间 Gap 割断

回帖推荐

marloneusa 发表于2楼  查看完整内容

generate a variable by substract the date and time [any range]. and then generate another variable based on your date and time. sort the dataset based the variable you created and merge those two dataset by those variables and then you will see the gaps. [此贴子已经被作者于2008-3-13 5:48:14编辑过]

本帖被以下文库推荐

沙发
marloneusa 发表于 2008-3-13 05:30:00 |只看作者 |坛友微信交流群
generate a variable by substract the date and time [any range]. and
then generate another variable based on your date and time. sort the dataset based the variable you created and merge those
two dataset by those variables and then you will see the gaps.

[此贴子已经被作者于2008-3-13 5:48:14编辑过]

已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 10 精彩帖子

总评分: 经验 + 3  论坛币 + 10   查看全部评分

使用道具

藤椅
joe365 发表于 2008-3-14 02:20:00 |只看作者 |坛友微信交流群
The problem has been solved. Thank you!

[此贴子已经被作者于2008-3-14 2:21:23编辑过]

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-27 04:50