全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3295 15
2013-05-23
Searching is the most wildely used technology.It includes:merges,joins,formats,indexs and other special functions.
The skills about merge,sql and conditional logic are all base on comparsion.Because it need to compare key with one or more keys in another table,it is slow and it would spend a lot of memory.What is more,if you use merge,you have to sort the data first.If the data happen to be a large data,the Merge method would be the worst.
Hashing is better method base on Direct-Addressing and it is much more convenient.
The is a Demo using hash.You can try it in another way like sql,merge to compare their efficiency.

复制代码
Table A is the main dataset,The question is you need the replace the variable 'type' using table B.For example using 'xy' to replace 'a'.As a result,the first line would be:
复制代码
The solution I will post later.welcome disscusion.


二维码

扫码加我 拉你入群

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

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

全部回复
2013-5-23 23:21:02
很好
二维码

扫码加我 拉你入群

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

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

2013-5-24 10:17:03
The 'merge' version:
复制代码
二维码

扫码加我 拉你入群

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

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

2013-5-24 11:09:08
Professor, I'd pick the FORMAT method for your sample question because of the single key variable.
二维码

扫码加我 拉你入群

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

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

2013-5-24 11:34:45
邓贵大 发表于 2013-5-24 11:09
Professor, I'd pick the FORMAT method for your sample question because of the single key variable.
Can you share the code of FORMAT method?
二维码

扫码加我 拉你入群

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

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

2013-5-24 11:49:47
楼主的实力,可以开专栏了。
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群