全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1975 4
2013-10-25
请问一下关于proc report过程中,define后面选项中order选项和group选项有什么区别呢,我运行编程时发现如果是正常升序排序的话两者似乎是可以替换的
二维码

扫码加我 拉你入群

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

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

全部回复
2013-10-25 13:30:45
If you want the values of the variable to determine the order of the rows in the report, then specify
ORDER;If you want the values of the variable to consolidate into one row all observations from the input
SAS data set that have the same variable value, then specify GROUP.
二维码

扫码加我 拉你入群

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

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

2013-10-25 13:47:48
换句话说,order有排序功能,group没有。你有时候所看到的可能就是它们将相同几列合并成一列,误以为它们是一样的
二维码

扫码加我 拉你入群

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

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

2013-10-25 13:52:59
heperwong 发表于 2013-10-25 13:30
If you want the values of the variable to determine the order of the rows in the report, then specif ...
明白了,谢谢哈
二维码

扫码加我 拉你入群

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

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

2013-10-25 19:47:40
明白了一点,如果是添加了汇总选项的话就可以看出其区别了
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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