
|
楼主: shixl05
|
2901
1
[原创博文] 请问SAS数据集如何分组删除前后n个数据? |
|
学前班 10%
-
|
回帖推荐xiaosanmao 发表于2楼 查看完整内容 data x;
input code$ b;
cards;
001 3
001 4
002 1
002 3
002 3
002 8
002 9
002 8
002 4
002 6
002 6
002 3
002 1
;run;
proc sort; by code;run;
data b;set x;by code;if first.code then m=0;m+1;run;
proc sql;
select code ,b from b having min(m)+5
本帖被以下文库推荐
| ||
|
|
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


