data a;
set a;
if _N_=1 then do;
call symput('first_obs',x);
end;
else do ;
if x^=&first_obs. then delete;
if x not in (“‘””&first_obs.““’”) then delete; /*字符型的*/
end;
run;
|
楼主: dxystata
|
5570
10
如何保留和第一个观测值相同的观测 |
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


