楼主: ljpest
2730 11

[SAS] 求助:如何将头n行数据设为空值。 [推广有奖]

11楼
ljpest 发表于 2014-10-20 01:04:43
teqel 发表于 2014-10-19 11:22
看看这个:

data test1(drop=temp);
您太强大了,对了,多谢。

12楼
bobguy 发表于 2014-10-20 05:05:18
you can conditionally use call missing routine. See example below.

proc print data=sashelp.class;
run;

data new_class;
   set sashelp.class;
   if _n_<=5 then call missing(age);
   run;

proc print;run;

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

客服
GMT+8, 2026-12-3 18:25