如何用sas对某一变量按照固定的间隔分成几个子集
答案:1 悬赏:0 手机版
解决时间 2021-03-24 03:30
- 提问者网友:温旧梦泪无声
- 2021-03-23 22:09
如何用sas对某一变量按照固定的间隔分成几个子集
最佳答案
- 五星知识达人网友:神鬼未生
- 2021-03-23 23:08
data work.ex;
array A(20);
do i=1 to 20;
A(i)=1;
end;
drop i;
;
run;
proc sql noprint;
select name into :col_name separated by ' '
from sashelp.vcolumn
where libname='WORK' and memname='EX'
and compress(name,'','d')='A' and
mod(input(compress(name,'','kd'),best32.),5)=0;
quit;
data ex1;
set ex;
keep &col_name;
run;
array A(20);
do i=1 to 20;
A(i)=1;
end;
drop i;
;
run;
proc sql noprint;
select name into :col_name separated by ' '
from sashelp.vcolumn
where libname='WORK' and memname='EX'
and compress(name,'','d')='A' and
mod(input(compress(name,'','kd'),best32.),5)=0;
quit;
data ex1;
set ex;
keep &col_name;
run;
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯